Skip to content

ManishShah120/Weather-Forecaster1.2

Repository files navigation

build GitHub version made-with-python PRs Welcome GitHub watchers

Weather-Forecaster1.2

  • A simple python web crawler to fetch Weather report of any state in India.

Getting Started

Installation

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

If the above Commands produces error Try installing the dependnecies

To install the dependencies

Pip3 install requirements.txt or
pip3 install bs4
pip3 install requests

How to run

From the project directory run python3 forecastmain.py alt text

HOW IT WORKS

  • 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

Built With

  1. Python 3.6
  2. Linux

Dependencies & packages

  1. BeautifulSoup
  2. Requests
  3. Os
  4. Sys
  5. re
  6. citiesurl(Self Built)

Contributing

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 a pull request.

Authors

Manish Kumar Shah

License PyPI license

MIT

Project Status

Till now this project has been 95% completed. Everyone is Welcomed to fork this repo and work on it and submit a pull request.

About

Web Scraper to scrape weather report of any state in India

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages