How to send parameters with a GET request?

get, python, request

Solution

Looking at youtube, the url to the search page seems to be

http://www.youtube.com/results?search_query=test

You're missing the `results` part, which is the page you are looking for.

Problem

I'm currently trying to make a GET request to YouTube, to search for a video on it (using Python, as well as the Requests module). The following is what I'm doing to make a request: ``` r = requests.get("http://www.youtube.com/", params={ "search_query": "Test" }).text ``` However, when printing the request, it only seems to be getting the homepage of YouTube, no matter what I change the search query to. Would anyone know why this is occuring? Thanks

Original source