How do I use the search field on a webpage using POST requests and then parse said site for its div classes?Parse JSON in C#Peak detection in a 2D arrayHow to make HTTP POST web requestHow do I send a POST request with PHP?How is an HTTP POST request made in node.js?How can I post data as form data instead of a request payload?How are parameters sent in an HTTP POST request?Passing a CSRF token into requests.post()How to make a POST request with PHP given the following HTTP + JSONParsing JSON data from a scraped div class with Python requests/Beautiful Soup

Sorting a list according to some pre-specified rules

Custom Geolocation Fields not populating in test class

NOLOCK or Read Uncommitted locking / latching behaviours

Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?

Those who speak do not know, those who know do not speak

Can you create a free-floating MASYU puzzle?

Intern not wearing safety equipment; how could I have handled this differently?

How do ballistic trajectories work in a ring world?

force:lightningQuickAction . Will implementing this open the component as modalpop up directly?

Can the Four Elements monk's Shape the Flowing River elemental discipline create stairs by expending a single ki point?

What are the effects of abstaining from eating a certain flavor?

Who goes first? Person disembarking bus or the bicycle?

Why SQL does not use the indexed view?

Taking my Ph.D. advisor out for dinner after graduation

Was the 45.9°C temperature in France in June 2019 the highest ever recorded in France?

How do I explain that I don't want to maintain old projects?

Passwordless authentication - how and when to invalidate a login code

What was the nature of the known bugs in the Space Shuttle software?

Does anyone have a method of differentiating informative comments from commented out code?

Why did Robert F. Kennedy loathe Lyndon B. Johnson?

Why do airports remove/realign runways?

Will Jimmy fall off his platform?

Four ships at the ocean with the same distance

How do I talk to my wife about unrealistic expectations?



How do I use the search field on a webpage using POST requests and then parse said site for its div classes?


Parse JSON in C#Peak detection in a 2D arrayHow to make HTTP POST web requestHow do I send a POST request with PHP?How is an HTTP POST request made in node.js?How can I post data as form data instead of a request payload?How are parameters sent in an HTTP POST request?Passing a CSRF token into requests.post()How to make a POST request with PHP given the following HTTP + JSONParsing JSON data from a scraped div class with Python requests/Beautiful Soup






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm fairly new to coding, and I'm currently making a Reddit bot in Python that when prompted to do so will search The Library of Babel for some phrase. I've come to understand that I will need to use requests.post(yadayada...) but I can't wrap my head around how the requests module works. Specifically, how can I use it to use the search function on that page, and then parse for the top result?



I've come to somewhat think I understand GET requests, but every time I think I learned something it turns out there's a billion new phrases, objects or variables that aren't explained anywhere I also need to know about. I'm still lost on what exactly a POST request does, and how to use it. So what parameters exactly do I need to use in order to search and parse, and what do they do?










share|improve this question

















  • 1





    So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

    – FailSafe
    Mar 25 at 21:55


















0















I'm fairly new to coding, and I'm currently making a Reddit bot in Python that when prompted to do so will search The Library of Babel for some phrase. I've come to understand that I will need to use requests.post(yadayada...) but I can't wrap my head around how the requests module works. Specifically, how can I use it to use the search function on that page, and then parse for the top result?



I've come to somewhat think I understand GET requests, but every time I think I learned something it turns out there's a billion new phrases, objects or variables that aren't explained anywhere I also need to know about. I'm still lost on what exactly a POST request does, and how to use it. So what parameters exactly do I need to use in order to search and parse, and what do they do?










share|improve this question

















  • 1





    So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

    – FailSafe
    Mar 25 at 21:55














0












0








0








I'm fairly new to coding, and I'm currently making a Reddit bot in Python that when prompted to do so will search The Library of Babel for some phrase. I've come to understand that I will need to use requests.post(yadayada...) but I can't wrap my head around how the requests module works. Specifically, how can I use it to use the search function on that page, and then parse for the top result?



I've come to somewhat think I understand GET requests, but every time I think I learned something it turns out there's a billion new phrases, objects or variables that aren't explained anywhere I also need to know about. I'm still lost on what exactly a POST request does, and how to use it. So what parameters exactly do I need to use in order to search and parse, and what do they do?










share|improve this question














I'm fairly new to coding, and I'm currently making a Reddit bot in Python that when prompted to do so will search The Library of Babel for some phrase. I've come to understand that I will need to use requests.post(yadayada...) but I can't wrap my head around how the requests module works. Specifically, how can I use it to use the search function on that page, and then parse for the top result?



I've come to somewhat think I understand GET requests, but every time I think I learned something it turns out there's a billion new phrases, objects or variables that aren't explained anywhere I also need to know about. I'm still lost on what exactly a POST request does, and how to use it. So what parameters exactly do I need to use in order to search and parse, and what do they do?







python html json post python-requests






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 21:27









Alexander LohmannAlexander Lohmann

11 bronze badge




11 bronze badge







  • 1





    So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

    – FailSafe
    Mar 25 at 21:55













  • 1





    So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

    – FailSafe
    Mar 25 at 21:55








1




1





So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

– FailSafe
Mar 25 at 21:55






So there are sometimes some exceptions, but typically GET requests mean you're getting data from a website and POST requests mean that you're putting data in. BUT, sometimes POST do return data from the site or do both so this isn't concrete. IIRC GET requests can also sometimes technically post data to a site. Anyway, typically for your types problems, these websites will have something called an API which will allow you to interact with them in particular ways. So in this case, you'll likely send a POST request to implant text at the site, perform a search, and get data back

– FailSafe
Mar 25 at 21:55













0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346648%2fhow-do-i-use-the-search-field-on-a-webpage-using-post-requests-and-then-parse-sa%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346648%2fhow-do-i-use-the-search-field-on-a-webpage-using-post-requests-and-then-parse-sa%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript