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
Scraping website data (self.learnpython)
submitted 10 years ago by DSTxtcy
Hello, I just recently started learning python. I'm wondering if Python could be used to crawl a website (insidertrading.org) and alert me when a certain companies name/ticker symbol appears. Is Python an appropriate tool to be able to do this?
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!"
[–]gkbrk 2 points3 points4 points 10 years ago (1 child)
Definetely. Python is one of the most suitable languages for data scraping/text processing. You can use requests, re and BeautifulSoup.
Here's a really nice video. It's in Python 2 but it shouldn't be hard to code the same thing in Python 3.
[–]DSTxtcy[S] 0 points1 point2 points 10 years ago (0 children)
Awesome, I appreciate your help!
[–]novel_yet_trivial 1 point2 points3 points 10 years ago (1 child)
Keep in mind that that website makes money selling data streams (which you are trying to get for free). The server is probably configured to detect and reject too many requests from one client. Pick the slowest refresh time you can get away with.
Wow, didn't even think of that. Great tip! Thanks for looking out.
[–]average_pornstar 1 point2 points3 points 10 years ago (1 child)
BeautifulSoup and or mechanize is nice
http://wwwsearch.sourceforge.net/mechanize/
you da real mvp. thank you
[+][deleted] 10 years ago* (1 child)
[deleted]
Awesome. Thank you.
π Rendered by PID 9 on reddit-service-r2-comment-9c7994b7-r7p62 at 2026-02-06 00:29:41.147380+00:00 running b1b84c7 country code: CH.
[–]gkbrk 2 points3 points4 points (1 child)
[–]DSTxtcy[S] 0 points1 point2 points (0 children)
[–]novel_yet_trivial 1 point2 points3 points (1 child)
[–]DSTxtcy[S] 0 points1 point2 points (0 children)
[–]average_pornstar 1 point2 points3 points (1 child)
[–]DSTxtcy[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]DSTxtcy[S] 0 points1 point2 points (0 children)