bear / ronkyuu

論及 ronkyuu - mention, reference to, touching upon
MIT License
42 stars 5 forks source link

support for custom User-Agent string #15

Closed kylewm closed 8 years ago

kylewm commented 8 years ago

I'd like to send my own user-agent string instead of the default python-requests one. (Wordpress installations in particular tend to block requests's UA).

sknebel commented 8 years ago

Piggy-backing on this, an option to pass custom headers that are used for all requests would useful and enough to solve this.

In requests, the user-agent is changed by explicitly adding an User-agent header, and it could be used for other purposes, like passing X-Forwarded-For.

bear commented 8 years ago

both are great suggestions - I'll add them quickly

thanks!