ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.05k stars 10.01k forks source link

Help with Twitter profile scraper command line #30932

Open TheMissingPort opened 2 years ago

TheMissingPort commented 2 years ago

Here is the line of code I enter in terminal. I put in my own username and password

youtube-dl -u, --username USERNAME -p, --password PASSWORD https://twitter.com/mankoprincess

This is what I get:

[generic] Username: Requesting header WARNING: Falling back on generic information extractor. [generic] Username: Downloading webpage [generic] Username: Extracting information ERROR: Unsupported URL: https://twitter.com/Username

Any ideas? Thanks

dirkf commented 2 years ago

The option name is either -u or --username, not both. Similarly with -p. So no commas, either.

The short names are convenient; the long names can be better in scripts that people may want to read without having to look up what each option means.

Also, it's possible that the login procedure doesn't work in the Twitter extractor (any longer, if it did). You may need to use --cookies ..., for which read the manual.

TheMissingPort commented 2 years ago

The option name is either -u or --username, not both. Similarly with -p. So no commas, either.

The short names are convenient; the long names can be better in scripts that people may want to read without having to look up what each option means.

Also, it's possible that the login procedure doesn't work in the Twitter extractor (any longer, if it did). You may need to use --cookies ..., for which read the manual.

Thanks for the response. I updated my line but I still get "unsupported URL" error. Is there something else im missing?

it looks like this now (changed my info to "username" for privacy)

youtube-dl -u username -p password! https://twitter.com/username

dirkf commented 2 years ago

The extractor module for Twitter doesn't extract an entire profile. Things like these might work:

TheMissingPort commented 2 years ago

The extractor module for Twitter doesn't extract an entire profile. Things like these might work:

Is it possible to extract all media from a profile?

afterdelight commented 2 years ago

use gallery-dl instead and read my issue\ https://github.com/mikf/gallery-dl/issues/2588