Ok, thanks a lot
Latest posts made by InAPickle
RE: What do I look for when wanting to scrape a certain thing?
Well there has to be someone in this community who knows how.
What do I look for when wanting to scrape a certain thing?
import bs4, requests def get_beautiful_soup(url): return bs4.BeautifulSoup(requests.get(url).text) soup = get_beautiful_soup('http://www.weatherbug.com') print(soup.get_text())
Ok so as of now, in the script above I have made you use weather bug to find the weather in your local area, and your area and weather should appear at the top. After looking into the buetiful soup 4 documentation, I see that you are able to extract certain information. The way it is explained on the Documentation is that you can use "for link in soup.find_all('a'):" to find all of the "<a>" 's in the website. My problem is that every location has a different name, so I can't just tell it to look for one because that won't find your location. If you know what to do please help, I will continue to do research on this.