KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My python level is Novice. I have never written a web scraper or crawler. I have written a python code to connect to an api and extract the data that I want. But for some the extracted data I want to get the gender of the author. I found this web site http://bookblog.net/gender/genie.php but downside is there isn't an api available. I was wondering how to write a python to submit data to the form in the page and extract the return data. It would be a great help if I could get some guidance on this. This is the form dom: <form action="analysis.php" method="POST"> <textarea cols="75" rows="13" name="text"></textarea> <div class="copyright">(NOTE: The genie works best on texts of more than 500 words.)</div> <p> <b>Genre:</b> <input type="radio" value="fiction" name="genre"> fiction <input type="radio" value="nonfiction" name="genre"> nonfiction <input type="radio" value="blog" name="genre"> blog entry </p> <p> </form> results page dom: <p> <b>The Gender Genie thinks the author of this passage is:</b> male! </p>
Tags (comma-separated)
Save Edits
Cancel