-
Notifications
You must be signed in to change notification settings - Fork 4
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
400 error and csv file for the first run #10
Comments
Hey @daehwankim112, thanks for the thoughtful write up and for giving the project a whirl. Sorry you're having so much trouble. With regards to the Interestingly, I've never downloaded data with takeout. I just tried it now and I'll see what happens when I run it with my data. One thing I noticed while downloading is that the file type I downloaded was a It looks like the More importantly though, I assume that the data format from takeout is going to be different than the one my program expects. So even if we fix the current issue, it might require an update to get the json read in correctly. I'll report back ASAP! |
Hello Jessime. Sorry for late responding and thank you so much for taking your time into this. I unzipped my file before running it.
I agree. I will wait. If there is anything you want me to do, let me know. |
Hey! One thing lead to another and I end up making a bunch of changes to this program over the last couple days. The most important one is that you can (and should) now specify the
Note that the data you've downloaded in Also, sometime in the last 4 years, Google stopped saving the likes/dislikes for each video, and just stores an "average rating". So, I redid a bunch of stats to account for that. I think the end results are even better than they were before! One small caveat is that I haven't done a ton of testing with this new code yet, just tried it on a couple of people. Give it a whirl and let me know how it goes! |
Hello Jessime. Thank you for an update. I am so glad that you are working on it! I pip installed it and downloaded my takeout and ran it. It says
Then I found out there is a -h parameter and it says
It does not recognize Maybe you forgot to commit and push? Thank you |
The commit was pushed to GitHub 11 hours ago now. So, all you need to do is But, I'm pretty curious about what you mean when you say "I pip installed it". There's no pip package (that I've made at least). So just wondering what you mean by this? |
I saw
in README.md I cloned it and ran it again. I am seeing the same result.
This is the issue I think what might be the cause but I am pretty sure I am wrong.
This is line 304-314 in youtube_history.py at the moment. Thank you |
🤦 that's because I pushed everything except the main file. Pretty dumb mistake on my part. Try pulling again! |
Great! I ran it and it worked. There were some errors that I had to fix by myself because of codec does not recognize my font and ignore error if video became only available for people who joined the channel. For anyone who has cp949 error, (And I don't quiet recommend this method since you are changing lib directly. Maybe change back to what it was before after you get through it) You've watched Korean video and codec does not recognize Korean because they uses cp949 instead of utf-8. Go to C:\Users\your_name\Anaconda3\Lib
Done For those who receive this error.
The video you have watched is now only available for people who joined the channel. Edit youtube_history.py to be For those who receive this error.
I don't know what happened. Maybe it crashed before it finishes downloading meta-data. Edit youtube_history.py to be For those who see rectangular boxes in wordcloud. You are missing a font for whatever language you are using. Download or locate font you want to use.
Then world is beautiful and everything works fine. Thank you so much for this. It helped me understand what I am. I surely watched a lot of memes... |
Hello. Thanks for the interesting project.
I am on Windows 10.
I am receiving
"Unable to look up account info: HTTP Error 400: Bad Request"
after I type in my credentials.I thought it is 2 years old project, the way things google handle might be changed and it may think it is a bot.
$ python youtube_history.py -d 1
didn't work as well.
Therefore, I decided to get a metadata of my youtube history by myself. I went to https://takeout.google.com/ and got a json of my youtube history.
Then I get this error
I read through other issues and I found that if it is a second time running it, it will look for csv file. I think it might think is not a first time running because there is a metadata. So I used
$ python youtube_history.py -o /path/to/empty/data/directory/
in order to specify the location of metadata and it still look for csv.Here are the things that could be a cause of error.
Maybe metadata that I am using from that link is not recognizable.
I am very interested in this project. Thank you
The text was updated successfully, but these errors were encountered: