bitdruid / python-wayback-machine-downloader

Query and download archive.org as simple as possible.
MIT License
24 stars 1 forks source link

Adding a tool name to UserAgent #11

Closed Ghost-chu closed 3 months ago

Ghost-chu commented 3 months ago

Add the program name to the User-Agent to allow archive.org to recognize it.

bitdruid commented 3 months ago

Add the program name to the User-Agent to allow archive.org to recognize it.

how would you rewrite the user-agent in this case?

Ghost-chu commented 3 months ago

Add the program name to the User-Agent to allow archive.org to recognize it.

how would you rewrite the user-agent in this case?

I would like to use bitdruid/python-wayback-machine-downloader (1.1.0), maybe the user can change it too.

Using a browser UA doesn't seem to be a good option, it might confuse archive.org.

Ghost-chu commented 3 months ago

Even though it's not very standard, it seems to suffice:

more standard but looks a little bit weird:

bitdruid-python-wayback-machine-downloader/1.1.0

bitdruid commented 3 months ago

Even though it's not very standard, it seems to suffice:

more standard but looks a little bit weird:

bitdruid-python-wayback-machine-downloader/1.1.0

sounds okay to me. but do you have any sources for this approach? like if other tools doing so

Ghost-chu commented 3 months ago

Even though it's not very standard, it seems to suffice: more standard but looks a little bit weird: bitdruid-python-wayback-machine-downloader/1.1.0

sounds okay to me. but do you have any sources for this approach? like if other tools doing so

Without a specific source, UA usually consists of ProgramName/Version (Comment), but I'm not sure what the real name of this Program is, so I went with username-repository/version

bitdruid commented 3 months ago

fixed with release :)