Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Twitter video url retriever as a function

Notifications You must be signed in to change notification settings

zaherg/twitter-video-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-video-url

Twitter video url retriever via a function

$ git clone https://github.com/linuxjuggler/twitter-video-url \
  cd twitter-video-url

Now deploy:

$ faas-cli deploy

The YAML file is optional:

$ faas-cli deploy -f \
https://raw.githubusercontent.com/linuxjuggler/twitter-video-url/master/stack.yml

Or from the local file:

$ faas-cli deploy

Try it out:

$ echo -n https://twitter.com/RavenTest/status/1053357651101470729 | \
  faas-cli invoke twitter-video-url

Or with curl:

$ curl localhost:8080/function/twitter-video-url \
 -d "https://twitter.com/RavenTest/status/1053357651101470729"

Notes:

Please note that the script depends on Youtube-dl script, which means it may not work 100% as twitter is trying hard to get the video URL

Credits:

This image has been modified and built based on the code from faas-and-furious/youtube-dl

About

Twitter video url retriever as a function

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 68.7%
  • Shell 31.3%