Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proxy object #31

Merged
merged 5 commits into from
Jun 26, 2017
Merged

Feature proxy object #31

merged 5 commits into from
Jun 26, 2017

Conversation

AngelouDi
Copy link
Contributor

No description provided.

hmphu and others added 5 commits May 23, 2017 13:41
* Create README-vi.md file

Translated the readme text from English to Vietnamese

* Added link to README.md

* Added link to README-vi.md
Merge branch 'hotfix/1.0.5'
@coveralls
Copy link

coveralls commented Jun 25, 2017

Coverage Status

Coverage increased (+4.6%) to 48.5% when pulling 7df9d06 on jimangel2001:feature-proxyObject into 4a6032d on pgaref:feature/proxyObject.

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid commit files under .idea folder - A nice way to achieve that is using .gitignore file

@@ -0,0 +1,11 @@
class ProxyObject(object):
Copy link
Owner

@pgaref pgaref Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we have all the attributes we need for now

@@ -46,6 +47,15 @@ def parse_proxyList(self):
# Make sure it is a Valid Proxy Address
if UrlParser.valid_ip_port(td_row.text):
curr_proxy_list.append('http://' +td_row.text)
proxy_object = ProxyObject()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we probably want to make the code more clear and move this chunk of code in a separate method which returns a ProxyObject

@@ -45,12 +46,20 @@ def parse_proxyList(self):
break
else:
address += field[1] + ':'
proxy_object = ProxyObject()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, we probably should move the code to a separate method (check below)

@@ -49,12 +50,20 @@ def parse_proxyList(self):
break
else:
address += field[1] + ':'
proxy_object = ProxyObject()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, we probably should move the code to a separate method (check below)

@@ -33,6 +34,12 @@ def parse_proxyList(self, use_top15k=False):
if UrlParser.valid_ip_port(row):
proxy = "http://" + row
curr_proxy_list.append(proxy.__str__())
proxy_object = ProxyObject()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, we probably should move the code to a separate method (check below)

Copy link
Owner

@pgaref pgaref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging and starting some refactoring.
Thanks for the PR 👍

@pgaref pgaref merged commit 6d8d91b into pgaref:feature/proxyObject Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants