- A simple python web crawler to fetch Weather report of any state in India.
After downloading or cloning the repo, Navigate to the directory containing the files and double click on setup.py or run
sudo python setup.py install
or if you have different versions of python then
sudo python3 setup.py install
Pip3 install requirements.txt
or
pip3 install bs4
pip3 install requests
From the project directory run
python3 forecastmain.py
- It prompts to select a state from the dropdown and then select a city from that state to get the forecast and Voila You get the required Weather Report of that particualr city.
- An algorithm is being designed for scraping the data and laying out in the desired format
- The source code of the requested webpage is decoded and
<div>
containing the forecast string is searched, manipulated a little, fomatted to display
- Python 3.6
- Linux
- BeautifulSoup
- Requests
- Os
- Sys
- re
- citiesurl(Self Built)
1.Feel free to FORK
2.Create your feature branch:git checkout -b my-new-feature
3.Beautify/Format your code before making a PR. Poorly stuctured code with inconsistent spacing and bad variable name will not be merged.
4.Use this tool to beautify your code :Click
5.Make sure your program works after beautifying it.
6.Please check your spellings before making a PR
7.Comment code properly.
8.Commit your changes:git commit -m 'Add some feature'
9.Push to the branch:git push origin my-new-feature
10.Submit apull
request.
Till now this project has been 95% completed. Everyone is Welcomed to fork this repo and work on it and submit a pull request.