sparklemotion / mechanize

Mechanize is a ruby library that makes automated web interaction easy.
https://www.rubydoc.info/gems/mechanize/
MIT License
4.39k stars 473 forks source link

Update user agent strings for agent aliases #612

Closed takatea closed 1 year ago

takatea commented 1 year ago

I think user agent aliases of Mechanize looks useful for developer, but actually unusable because they are very old. They looks need to be updated.

In addition, this PR contains an example to fetch latest user agents from WhatIsMyBrowser.com. Especially, The service provide APIs and it requires payment, so public web site content may be a preview. Therefore, to avoid pirating, I did not fully automate this process to update user agent aliases.

flavorjones commented 1 year ago

Thank you for submitting this! I've kicked off CI and I think this update (and the example which helps keep us up to date) is very helpful.

flavorjones commented 1 year ago

Looks good. I updated the docstring and will merge this shortly.

takatea commented 1 year ago

@flavorjones

Thank you so much for docstring update, and thank you for the review and this PR merging!

flavorjones commented 1 year ago

Just shipped in Release 2.9.1 / 2023-04-17 · sparklemotion/mechanize