-
Notifications
You must be signed in to change notification settings - Fork 59
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
Feature proxy object #31
Conversation
* 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'
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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)
There was a problem hiding this 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 👍
No description provided.