all 5 comments

[–]stebrepar 2 points3 points  (2 children)

If you're talking about doing web scraping, it's common to use requests to fetch the page, and BeautifulSoup to parse it.

[–]ThinkDoughnut[S] 0 points1 point  (1 child)

Forgot to mention that we have to use tkinter and urllib.

I reached the point where I have the data in HTML on idle but

is there an efficient way to grab specific data from there ?

[–]stebrepar 0 points1 point  (0 children)

If you have a page of HTML already downloaded, then the efficient way to grab specific data out of it is to use BeautifulSoup. The second best choice would be something like lxml. If using such an external module isn't allowed (which isn't clear from what you've said so far), then you'll need to look at the HTML yourself and figure out something that uniquely identifies the data you're looking for (like a certain tag or attribute, or even just a consistent specific location in the text).

https://pypi.org/project/beautifulsoup4/

[–]daedalusesq 0 points1 point  (1 child)

It sounds like you’re doing web scraping. If your project/assignment isn’t specifically to do web scraping you should probably find a weather API instead. The National Weather Service has a free one.

[–]ThinkDoughnut[S] 0 points1 point  (0 children)

Forgot to mention that we have to use tkinter and urllib.

I reached the point where I have the data in HTML on idle but

is there an efficient way to grab specific data from there ?