How can I automate checking death notices for a specific name?

0
10
Asked By CuriousCoder88 On

I'm looking for a way to automate a daily check for death notices in a specific city, especially to flag a particular name. I have absolutely no coding experience—my last venture into coding was with PASCAL! I'm eager to learn but feel really out of the loop with modern technology. I want guidance on where to start without getting lost in unnecessary details. Any suggestions on how to learn this as a beginner would be greatly appreciated!

3 Answers

Answered By CodeGuru42 On

A few things to consider: Does the website have an API? Is it static or dynamically generated? If the content is static, like HTML directly in the source, then Python with requests and BeautifulSoup is perfect. If it's dynamic, you might need something like Selenium to get the data since it allows you to run JavaScript in a browser. You can check how the site loads content by using your browser's dev tools. If you’re unsure, you can send me the URL, and I can help you figure it out!

Answered By TechWhiz101 On

Python is a great choice for this kind of task! You'll want to look into using the BeautifulSoup library for web scraping, which is exactly what you're aiming to do. I'd recommend starting with the free course 'Python Programming 2025' up to at least part 5, and then checking out 'Automate the Boring Stuff with Python'—it has a whole chapter on web scraping. Both resources are free to access online.

Answered By DevNinja33 On

You don’t necessarily need to parse the data for names—they're unique enough that a simple search will do the trick! You can use requests to fetch the page and then search the body for the name you're interested in. If you find the website dynamically generates content, look for an API endpoint that might give you the data you need. Once you have your script ready, tools like cronjobs (or scheduled tasks on Windows) can help automate the process further.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.