skyplane-project / skyplane

🔥 Blazing fast bulk data transfers between any cloud 🔥
https://skyplane.org
Apache License 2.0
1k stars 58 forks source link

Need to pass a browser user agent to automatically download ip ranges #855

Closed Lusitaniae closed 1 year ago

Lusitaniae commented 1 year ago

https://github.com/skyplane-project/skyplane/blob/1697d89e893caa2f282320e8b30ea2d596aa5528/skyplane/utils/networking_tools.py#L26

Fails with:

'Microsoft CorporationYour current User-Agent string appears to be from an automated process, if this is incorrect, please click this link:United States English Microsoft Homepage'

Passing a user-agent is enough to work around that: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

this one has 25% market share according to https://www.useragents.me/