-
Notifications
You must be signed in to change notification settings - Fork 413
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
nflgame-update-players socket timeout error #136
Comments
I have no clue. It is working fine for me here. Can you access www.nfl.com in a browser? It looks like some kind of connectivity problem... |
Yes. Maybe I am being rate limited by nfl.com right now? I'll try again this weekend from a different ip address. |
FWIW, I've never seen nfl.com do rate limiting in the years I've been doing this. Specifically, as long as you're starting with an existing player database, the number of requests sent to nfl.com should be pretty small. |
Good to know. I did try running |
I was able to get this to work today after a few tries. Maybe just need to catch the error and retry the GET if the first one fails. $ nflgame-update-players To get rid of this warning, change this: BeautifulSoup([your markup]) to this: BeautifulSoup([your markup], "lxml") markup_type=markup_type)) |
I know this is an old issue but I found the source of the problem. This is sort of unrelated to nflgame as I found the same issue with other scrapers and it was due to my poor wifi connection and lost packets. The solution was to retry all get requests if the first one fails. For a code sample I replace all
with
|
Sorry to keep opening issues with your projects (which are great btw thanks for all your hard work). I got nflvid working now, but I can't seem to get
nflgame-update-players
to work properly. I suspect a lot of my issues were related to hacking together old score data downloads, but I've since completely reinstalled all your programs with a fresh db.Sometimes it ends in a socket.timeout instead of the unable to find nfl.com error
I've also tried
$ nflgame-update-players --simultaneous-reqs 1
which gives the same error. Sometimes it gets further in the download sometimes it gets not as far...The text was updated successfully, but these errors were encountered: