![]() |
|
[.NET] vb.net 2015 youtube-mp3.org httprequest - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] vb.net 2015 youtube-mp3.org httprequest (/showthread.php?tid=5635933) |
vb.net 2015 youtube-mp3.org httprequest - siteper - May 31, 2017 Hi friends, i'm trying to download converted video from this site:youtube-mp3 I can do everything throught webbrowser but now I'm trying to download string throught webclient and to send/get request throught httprequest Only problem I have is that does not understand how the site generate those 2 values of those variables: 1. is the r 2. is the s my first request Code GET ..youtube-mp3/a/pushItem/?item=...youtube.com/watch%3Fv%3DbUjNWyM8H8U&el=ma&bf=false&r=1496139500327&s=132288Code GET ...youtube-mp3.org/a/itemInfo/?video_id=bUjNWyM8H8U&ac=www&t=grp&r=1496139500604&s=74286thank you * - Ninja - Jun 1, 2017 r seems to be a unix timestamp, and I dont know about s. * - Kewin - Jun 1, 2017 Here is something similar that I coded. Hope this helps you. CODE: Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://www.youtubeinmp3.com/widget/button/?video=" + TextBox1.Text) End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click If RadioButton1.Checked = True Then WebBrowser1.Document.GetElementById("downloadButton").InvokeMember("click") End If If RadioButton2.Checked = True Then MsgBox("Ads may pop up! Exit out of them. Only click save on the save file dialog to save your file!") WebBrowser1.Document.GetElementById("downloadMP4").InvokeMember("click") End If End Sub Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged If RadioButton2.Checked = True Then WebBrowser1.Document.GetElementById("video").SetAttribute("value", TextBox1.Text) WebBrowser1.Document.GetElementById("submitForm").InvokeMember("click") End If End Sub Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load WebBrowser1.Navigate("http://www.youtubeinmp4.com/") End Sub 🤝 🎉 * - Cairns - Jun 2, 2017 I think you should not waste your time with a third-party service like youtubeinmp4 man. Work directly with youtube servers, that way you can probably eliminate as much future issues as possible because you will have to relay on youtubeinmp4, rather than youtube itself. * - Ninja - Jun 2, 2017 (Jun 2, 2017 05:09 AM)Cairns Wrote: I think you should not waste your time with a third-party service like youtubeinmp4 man. Work directly with youtube servers, that way you can probably eliminate as much future issues as possible because you will have to relay on youtubeinmp4, rather than youtube itself. This. Capture the YouTube requests and find out how the video is downloaded and download it yourself. If that is too hard you can probably find an open source youtube downloader so you find out how the requests are made and replicate them. * - siteper - Jun 8, 2017 Thank you for replay. Friends I asked for http request with webbrowser I know how to do it and Im trying to download mp3 not video. so your answers can't help me. Thank you also for your time. * - +Haze - Jun 8, 2017 http://www.youtubeinmp3.com/api/ thank me later * - Ninja - Jun 8, 2017 (Jun 8, 2017 02:00 AM)siteper Wrote: Thank you for replay. Friends I asked for http request with webbrowser I know how to do it and Im trying to download mp3 not video. so your answers can't help me. Thank you also for your time. Both my answers have been related to http requests... * - siteper - Jun 9, 2017 (Jun 8, 2017 03:29 AM)+Haze Wrote: youtubeinmp3.com/api/ Yes I know and with this site have finished. I'm adding a lot sites so if one is down users can choose another one like youtube-mp3 but like I told before with a webbrowser I can do it, I'm trying to do it with http request. I know that r is unix timestamp but s??? thanks also for help |