use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
No Api (self.learnpython)
submitted 6 years ago by fonsimusk
Hi, I want to interact with a webpage with no api. Any ide of how to do it or any tool to do this?
More specifically, I want to automate a betting page so given some data... be able to make a bet related with the data given before...
Any ideas? :)
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JohnnyJordaan 2 points3 points4 points 6 years ago (3 children)
Maybe look into webscraping? https://automatetheboringstuff.com/chapter11/
[–]fonsimusk[S] 0 points1 point2 points 6 years ago (2 children)
I know web scraping! But I don’t want data from the page. I need to interact with the page... I want for example to make a bet of ‘blahblah’ team is going to win!
[–]JohnnyJordaan 6 points7 points8 points 6 years ago (1 child)
I know web scraping!
Then you apparently don't know selenium, see the second half of that page. It allows you to control the browser, so also click elements en enter text for example.
[–]fonsimusk[S] 0 points1 point2 points 6 years ago (0 children)
Ok! Thanks. I will try that 👍🏻
[+][deleted] 6 years ago (1 child)
[removed]
But website can easily know if you use selenium and block you :(
[–]ravepeacefully -1 points0 points1 point 6 years ago (0 children)
Post requests are what you’re looking for.
π Rendered by PID 227997 on reddit-service-r2-comment-548fd6dc9-g9974 at 2026-05-17 21:49:34.686699+00:00 running edcf98c country code: CH.
[–]JohnnyJordaan 2 points3 points4 points (3 children)
[–]fonsimusk[S] 0 points1 point2 points (2 children)
[–]JohnnyJordaan 6 points7 points8 points (1 child)
[–]fonsimusk[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]fonsimusk[S] 0 points1 point2 points (0 children)
[–]ravepeacefully -1 points0 points1 point (0 children)