NasirKhalid24 / Wally

Open-WA based Whatsapp account to automate tasks
0 stars 1 forks source link

Update `decode_message.js` to find youtube, twitter, insta etc video links #13

Closed NasirKhalid24 closed 3 years ago

NasirKhalid24 commented 4 years ago

Is the user sends any link the decode_message.js it should return the appropriate command such as Youtube, Twitter etc and it would return the url as an argument which can then be used.

So for example if the user messages

youtube.com/watch=beja#da?

Our decode_message.js would return

{
    "command": "youtube",
    "arguments": [
        {
            "argument": "url",
            "value": "youtube.com/watch=beja#da?"
        }
    ]
}
adib1996 commented 4 years ago

As of yet we can see that there are two types of youtube URL formats:

  1. https://www.youtube.com/watch?v=gfQFOc8DCLU
  2. https://youtu.be/gfQFOc8DCLU

Just FYI

adib1996 commented 4 years ago

any progress with a library for twitter, instagram or facebook? @NasirKhalid24

NasirKhalid24 commented 4 years ago

Need to handle them independently since twitter can be video, picture or album of 4 pictures (same with insta and facebook)

Starting with twitter next

adib1996 commented 4 years ago

lets work on this after deploying v.0.1

adib1996 commented 3 years ago

funny enough youtube-dl can get links from other video platforms. Suggest we try it out @NasirKhalid24