-
Notifications
You must be signed in to change notification settings - Fork 76
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
Option to set Request User-Agent string #12
Comments
Glad you are enjoying riko and thanks for the suggestion! I agree this is a useful feature, but I'm not sure when I will be able to work on it since will touch multiple files and require a bit of time to properly integrate into the entire project. If this is something you are willing to take a stab at, I can happily point you in the right direction :). My initial thought is to add a IIRC, I don't think |
Hi! I just took a look through the source code, and the part I'm not really clear on is what would need change in Also, which modules will want this feature? I was looking specifically at |
This would be true if SyncPipe('fetch', conf={'url': 'example.com'}, ua='Special-Agent') instead of SyncPipe('fetch', conf={'url': 'example.com', 'ua': 'Special-Agent'}) The choice of whether
I would say almost all of the source pipes, with the exceptions being I hope that didn't overwhelm you :) |
Hey I'm sorry I really haven't had time to take on this work. I wish I did! It's looking more complicated than I can realistically tackle right now, so please close this issue if you are unlikely to implement it yourself. Thanks! |
I'll keep it open since it's a valid request. Any area in particular causing difficulty? |
CR #45 |
I've been trialling riko and it seems great. I do have a small request however, that an option be added to change the
User-Agent
on outgoing requests. Some servers will block the defaultUser-Agent: Python-urllib/3.5
.Alternatively, have you considered using
urllib3
instead of the mess that's in Python core? In that case you can easily pass headers into thePoolManager
constructor.https://urllib3.readthedocs.io/en/latest/
Thanks for your works!
The text was updated successfully, but these errors were encountered: