{"id":17525451,"url":"https://github.com/tedlivist/weather-scraper","last_synced_at":"2025-03-29T00:41:28.629Z","repository":{"id":49990367,"uuid":"369336244","full_name":"TedLivist/weather-scraper","owner":"TedLivist","description":"This program scrapes weather forecast requests for a city from Weather-Forecast.com along with some additional weather information for nearby cities. Built with Ruby.","archived":false,"fork":false,"pushed_at":"2022-04-27T02:38:13.000Z","size":126,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"development","last_synced_at":"2023-03-10T05:02:34.966Z","etag":null,"topics":["ruby","scraper","weather"],"latest_commit_sha":null,"homepage":"https://replit.com/@iamxted/weather-scraper","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TedLivist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-20T20:57:27.000Z","updated_at":"2022-04-30T22:11:36.000Z","dependencies_parsed_at":"2022-08-29T06:21:15.504Z","dependency_job_id":null,"html_url":"https://github.com/TedLivist/weather-scraper","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedLivist%2Fweather-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedLivist%2Fweather-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedLivist%2Fweather-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedLivist%2Fweather-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TedLivist","download_url":"https://codeload.github.com/TedLivist/weather-scraper/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122239,"owners_count":20726822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","scraper","weather"],"created_at":"2024-10-20T14:43:19.763Z","updated_at":"2025-03-29T00:41:28.598Z","avatar_url":"https://github.com/TedLivist.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Microverse-blueviolet)\n\n# Weather Scraper\n\n\u003e This weather scraper formats important weather forecast information for any needed city.\n\nThis Weather Scraper used [12 Day Weather Forecast Worldwide](https://www.weather-forecast.com/) as the base website for the scraping.\n\n![screenshot](./assets/images/city-prompt.jpg)\n\nAs indicated above, when the program is run it prompts the user to put in a desired city whose weather forecast they wish to receive. In this case for example, the city is `Abuja`. Abuja is the Capital of Nigeria.\n\n![screenshot](./assets/images/city-forecast.jpg)\n\nAfter the user's city has been correctly retrieved, the next display shows a list-like forecast of the user's desired city with a heading like `Abuja Weather Forecast`. It comes in four(4) sub-headings: `1 - 3 days` which includes the day of the request, `4 - 7 days`, `7 - 10 days` and `10 - 12 days` - with each containing some description of what the weather forecast for that period is.\n\n![screenshot](./assets/images/other-cities-forecast.jpg)\n\nScrolling down further, weather forecast for five(5) cities near the user's city can be found too. In this case, for example, the five cities are `Keffi`, `Nasarawa`, `Kachia`, `Kafachan` and `Minna`. Now, each city contains sub-heading of the days intervals and a rather brief summary of the weather forecast for each interval.\n\n## Built With\n\n- Major language: Ruby\n- Important Gems: HTTParty, Nokogiri\n\n## Live Demo\n\n**Visit the link below and click the green `Run` button to run the app** \u003cbr /\u003e\n\n### [Live link](https://replit.com/@iamxted/weather-scraper)\n\n## Getting Started\n\n### Prerequisites\n- Ruby must be installed\n- Internet\n\n### Setup\n\n#### To get a local copy up and running simply follow the next step.\nClone this repository on to your local PC\n- Click on the `Code` green button\n- By the right end of the read-only input containing the repository link click the clipboard icon to copy the link\n- In your local PC, open your terminal in the folder you would like to clone the repository into\n- Clone the repository with the command: `git clone (copied link)`; like so: `git clone https://github.com/TedLivist/weather-scraper.git`\n- After the clone, type in the command `cd weather-scraper` to access the directory on the terminal\n\n#### To setup for RSpec testing\n- While in the directory on the terminal run `bundle install`\n- If you do not have the `rspec` gem installed, run `gem install rspec` on the terminal to install it\n\n### Install\nWhile still on the terminal and in the weather-scraper directory\n- Run the `bundle install` command to install all the gems in the Gemfile\n\n### Usage\n- Type `ruby bin/scraper.rb` in the terminal to run this weather scraper program\n- Give the program a few seconds to fetch the data\n- The first heading contains weather forecast data for your requested city\n- The next heading contains weather forecast for cities near your requested city\n- If you do not request a meaningful city, the program would not return anything\n\n### Run tests\nThere are two options:\n1. Run all tests simply by typing `rspec` or\n2. Run test for individual files by typing `rspec spec/[filename]_spec.rb` to run the tests for the corresponding `lib/filename.rb` file like so: `rspec spec/location_weather_spec.rb`\n\n## Author\n\n👤 **Teddy-Livingstone Ememandu**\n\n- [GitHub](https://github.com/TedLivist)\n- [Twitter](https://twitter.com/iamxted)\n- [LinkedIn](https://linkedin.com/in/tememandu)\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](issues/).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- [zayne](https://www.youtube.com/channel/UCkoEStUK7wxmZef2DcPuCAQ)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedlivist%2Fweather-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedlivist%2Fweather-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedlivist%2Fweather-scraper/lists"}