Skip to content

Conversation

@tarpetos
Copy link
Owner

No description provided.

@tarpetos tarpetos linked an issue Oct 20, 2022 that may be closed by this pull request
@tarpetos tarpetos changed the title Storing free proxies Collecting and storing free proxies Oct 20, 2022
@tarpetos tarpetos self-assigned this Oct 20, 2022
@tarpetos tarpetos requested a review from htrueman October 20, 2022 14:27
Comment on lines 22 to 24
items['ip_address'] = ip_address
items['port'] = port
items["https"] = True if https == "yes" else False
Copy link
Collaborator

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
Copy link
Collaborator

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'
Copy link
Collaborator

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

Suggested change
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'

Comment on lines 29 to 31
if ProxyScraperAnother.page_number <= 4800:
ProxyScraperAnother.page_number += 64
yield response.follow(next_page, callback=self.parse)
Copy link
Collaborator

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

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.

Collect free proxies

3 participants