Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How to return website search?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 22nd Dec 2016 23:23 Edited at: 22nd Dec 2016 23:25
Hello everybody.

I'm trying to download webpages using DBPRo commands.
It's working so far using some functions, but I'm not entirely sure about websites that require searching .

For example, let's say we want to search YouTube for 'PewDiePie'
Let's say I know the exact YouTube domain name, which is https://www.youtube.com
Now, I wanted to download the youtube search result page for PewDiePie , which is
Quote: "https://www.youtube.com/results?search_query=pewdiepie"

I want that URL returned to me.
Because if I can get that URL, then I can download the page using some functions.

But, the problem is, how do I use DBPro to return me that URL;
Quote: "https://www.youtube.com/results?search_query=pewdiepie"

so I can download it?
How do we command YouTube so that we can get that URL?

Can we use this function? Or is there other ways to do this?


Thanks in advance.
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 30th Dec 2016 20:00
Quote: "Can we use this function? Or is there other ways to do this?
HTTP REQUEST DATA(Verb, Object, String To Send)"


The legacy HTTP commands do not work on my machine. When ever I use them they return error codes. I use TCP network connections to download such stuff; the kind of procedure which requires use of a TCP networking plugin.

If it did work you'd put the "GET" in the first parameter, "https://www.youtube.com/results" in the second, then "search_query=pewdiepie" in the string to send part.

Quote: ""https://www.youtube.com/results?search_query=pewdiepie"
...
How do we command YouTube so that we can get that URL?"


I do not know how because that is YouTube 's data.

Login to post a reply

Server time is: 2024-04-23 20:54:30
Your offset time is: 2024-04-23 20:54:30