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

Possible to script downloading from bitchute? Forum somewhere? #1375

Closed
Lew-Rockwell-Fan opened this issue May 5, 2018 · 1 comment
Closed

Possible to script downloading from bitchute? Forum somewhere? #1375

Lew-Rockwell-Fan opened this issue May 5, 2018 · 1 comment
Labels

Comments

@Lew-Rockwell-Fan
Copy link

@Lew-Rockwell-Fan Lew-Rockwell-Fan commented May 5, 2018

I can't seem to find a forum for either webtorrent or bitchute. If this is the wrong place to ask this, maybe you could point me in the right direction.

I want to use webtorrent from a bash script to download the media from the most recent magnet link on a particular bitchute page. The idea is that it will check once a day & download the newest media, ideally checking to see if it has already been downloaded or if it is less than 24 hours old. If this is possible, I'd appreciate a suggestion on what to read to get an idea how to do it. If it isn't possible, this is a
feature request. Thanks.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 5, 2018

You have two ways to use WebTorrent for your use case:

  1. The command line (see https://github.com/webtorrent/webtorrent-cli)

  2. The JavaScript API (see https://webtorrent.io/docs)

You need to write code to do whatever logic you wish to obtain the magnet link. It sounds like you'll need to fetch the HTML page in question, search for a magnet link, check if it already exists on disk, then trigger WebTorrent to download it.

That last part is where you can invoke the webtorrent command line program, or use the WebTorrent Node.js API. See the documentation for each of these (linked above) for instructions on how to use them.

@feross feross added the question label May 5, 2018
@feross feross closed this May 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

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