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

Use own User-Agent #44

Open
hodduc opened this issue May 22, 2014 · 4 comments
Open

Use own User-Agent #44

hodduc opened this issue May 22, 2014 · 4 comments
Labels

Comments

@hodduc
Copy link

hodduc commented May 22, 2014

Some sites (including https://news.ycombinator.com/) seems to deny http requests having "User-Agent: Python-urllib/.", causes add_feed() fails.

One simple proposal can be setting User-Agent: EarthReader/x.y OR User-Agent: Mozilla/5.0 before making requests.

(This should be applied on libearth.crawl (and any other modules using urllib2.urlopen) as well)

@dahlia dahlia added the bug label May 22, 2014
@tribela
Copy link
Member

tribela commented May 27, 2014

It might be fixed with earthreader/libearth#50.

@tribela
Copy link
Member

tribela commented May 28, 2014

Fixed in earthreader/libearth#50

@tribela tribela closed this as completed May 28, 2014
@dahlia
Copy link
Contributor

dahlia commented May 29, 2014

[11:42:50] <hodduc^talk> TheK-: https://github.com/earthreader/web/issues/44 요거 https://github.com/earthreader/web/blob/master/earthreader/web/app.py#L272 요기도 수정해야 하지 않을까요?
[11:43:22] <hodduc^talk> (T`heK-님이 진원님 맞으시..겠죠?)
[12:30:19] <hongminhee> hodduc^talk: 그러게요

@dahlia dahlia reopened this May 29, 2014
@tribela
Copy link
Member

tribela commented May 29, 2014

Why not using crawler to that operation??
I think it should be change like crawler.check_reachable()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants