Skip to content

Use own User-Agent #44

@hodduc

Description

@hodduc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions