Skip to content
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

Youtube history analysis #10204

Closed
Jessime opened this issue Aug 1, 2016 · 5 comments
Closed

Youtube history analysis #10204

Jessime opened this issue Aug 1, 2016 · 5 comments

Comments

@Jessime
Copy link

@Jessime Jessime commented Aug 1, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.30. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.07.30

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v youtube-dl -u "{}" -p "{}" -o "{}" --skip-download --write-info-json -i https://www.youtube.com/feed/history
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.07.30
[debug] Python version 3.5.2 - Linux-3.16.0-77-generic-x86_64-with-debian-jessie-sid
[debug] exe versions: ffmpeg N-80901-gfebc862, ffprobe N-80901-gfebc862
[debug] Proxy map: {}
[youtube:history] Downloading login page
[youtube:history] Logging in
[youtube:history] Youtube History: Downloading webpage
[download] Downloading playlist: Youtube History
[youtube:history] playlist Youtube History: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: Youtube History
...
<end of log>

Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.

I've written a package to download and analyze a user's Youtube history. The problem is that sometimes (it's been inconsistent) 0 videos are downloaded, as shown above. The reason I've left out the username and passwords for the google account is because I don't have the passwords which are causing errors. I have access to three Google accounts and can use all of them in the program without issue.

It appears that Google is blocking some of the requests as suspicious. Is there anyway to get around this?

I'm currently running all of these off my single laptop, which I think may be contributing to the issue, but I don't know enough about this to be certain. Finally, I realize that this might not be a problem with youtube-dl per-se, but I didn't know where else to ask. Thanks!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 1, 2016

Post the output with --dump-pages with same such behavior.

@Jessime
Copy link
Author

@Jessime Jessime commented Aug 2, 2016

Will do. I currently don't have access to any of the passwords that cause the issue, but I should be able to get one in the next day or two.

@Jessime
Copy link
Author

@Jessime Jessime commented Aug 3, 2016

youtube_debug.txt

Here are the results of --dump-pages. I attempted to log on from my laptop, and wasn't able to download any videos. A couple minutes later my friend (who owns the account) was able to successfully start the download.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 3, 2016

This is what YouTube ask you to do:
image

Log in with browser and verify. Then you may need to export cookies and pass to youtube-dl.

@dstftw dstftw closed this Aug 3, 2016
@Jessime
Copy link
Author

@Jessime Jessime commented Aug 3, 2016

Excellent, thank you. I would have had a tough time figuring that out myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.