user-agents
user-agents copied to clipboard
user-agents.json is empty
Hi!
File: https://jnrbsn.github.io/user-agents/user-agents.json Now is empty. Is it an error or this project closed?
It's a bug. This project is not closed or abandoned. I'm working on a fix right now.
For now, I've manually reverted the commit that emptied the file, and I fixed the update job so that it will never publish an empty list. That should make it so that whatever you have that depends on this should work again.
I'm not sure right now why it's not working because it works for me locally. I don't have much more time to work on it right now because I'm about to leave to do some traveling. It might be a couple of days before I have time to work on a permanent fix, but I promise I'll fix it as soon as I can.
Thank you! Happy holidays!
I've also looked into the issue and it seems that the website started to block certain IP ranges (GitHub actions included). The HTML page returned from the request has text explaining that the request IP was blocked and that they suggest using their API but I couldn't find the necessary functionality in there.
It looks like it hasn't been updated in a while.
I know it's been a long time, but this is fixed now. The GitHub Action now makes sure there is an updated snapshot of the pages that need to be parsed on the Internet Archive's Wayback Machine. It saves a new snapshot if the latest one is at least 7 days old, then it parses the page from the latest snapshot instead of the original website. Kind of funky, I know, but hey, it works. The user agents will now potentially be up to 7 days out-of-date, but I think that's completely reasonable for the purpose that I'm guessing most people use this.