- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Collecting and storing free proxies #7
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
base: feature/#3-add-data-to-db
Are you sure you want to change the base?
Conversation
| items['ip_address'] = ip_address | ||
| items['port'] = port | ||
| items["https"] = True if https == "yes" else False | 
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.
Use either " or ' quotes in whole project
|  | ||
| class ProxyScraperAnother(scrapy.Spider): | ||
| name = 'proxy_scrap_another' | ||
| page_number = 64 | 
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.
why page_number=64
|  | ||
| yield items | ||
|  | ||
| next_page = 'https://hidemy.name/en/proxy-list/?start=' + str(ProxyScraperAnother.page_number) + '#list' | 
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.
better format using f-strings or .format() method
| next_page = 'https://hidemy.name/en/proxy-list/?start=' + str(ProxyScraperAnother.page_number) + '#list' | |
| next_page = f'https://hidemy.name/en/proxy-list/?start={ProxyScraperAnother.page_number}#list' | 
| if ProxyScraperAnother.page_number <= 4800: | ||
| ProxyScraperAnother.page_number += 64 | ||
| yield response.follow(next_page, callback=self.parse) | 
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.
update as discussed in telegram
No description provided.