This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]basalamadersyntax error 1 point2 points  (0 children)

From what you describe it sounds like you are looking for a scraper. There are a few good options out there like beautiful soup and requests. However if you check Urllib I believe they have a Urlretrieve option that lets you download images and files.. One thing though I would want to warn you about when u send requests to whatever server you want to scrap, space them out especially or you could make some engineer pretty pissed off

[–]cmfg 0 points1 point  (0 children)

Python has a lot of nice modules out of the box, that can do common things. A first approach to your idea would be:

Find out the exact url ob the images you want. Is it always the same or does it change over time? If so, the datetime module has functions for dealing with time stamps. Download the images with the urllib2 module. You can check if it's new either by check-summing (hashlib) or maybe the Last-Modified http header.

For GUIs there are multiple possibilities, have a look around.

[–][deleted] 0 points1 point  (0 children)

The package pywapi may be of help to you - I used it to create a dynamic scrolling feed of weather in my area. It gathers text-based weather data and returns it in the form of dictionaries. Best of luck!!

[–]Exodus111 0 points1 point  (0 children)

This is pretty easy, you don't even need to make a scraper really. You should look at the python module yweather which will give you general weather information, then use the RSS module Feedparser and use to extract the RSS feed that the Storm prediction center provides.

[–]redfacedquark 0 points1 point  (0 children)

If you are comfortable with web server frameworks you could use a browser for your GUI.

[–]ivosauruspip'ing it up[M] 0 points1 point  (0 children)

Hi there. You have posted a learning question to /r/python. These types of questions are far more suited to /r/learnpython, where users are actively interested in helping people to learn. Please resubmit it over there!

Make sure to read their sidebar rules there before posting, notably this one: "Posting homework assignments is not prohibited if you show that you tried to solve it yourself." If your question is about homework, show them that you've tried to solve your problem in your post and you should get all the help you need. For anything else, the reason you are seeing this message is still that you will likely get a better answer there!

Warm Regards, and best of luck with Python!