Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 569d3c3

Browse files
Set the user agent.
1 parent f5f44b1 commit 569d3c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎zipru_scraper/settings.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
NEWSPIDER_MODULE = 'zipru_scraper.spiders'
1616

1717

18-
# Crawl responsibly by identifying yourself (and your website) on the user-agent
19-
#USER_AGENT = 'zipru_scraper (+http://www.yourdomain.com)'
18+
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36'
2019

2120
# Obey robots.txt rules
2221
ROBOTSTXT_OBEY = True

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /