Skip to content

Scraping and plotting sunrise times in different cities

Notifications You must be signed in to change notification settings

hlnstepanova/after-sunrise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

AfterSunrise

Scraping and plotting sunrise times in R.

If you don't like to get up when it's still dark, use this script to see, how many days per year you can get up after sunrise depending on what city you choose to live in.

The script works as follows:

  1. User inputs his usual get up time
  2. User is asked to consider up to 6 cities
  3. The script scrapes timeanddate.com for necessary information
  4. The script plots sunrise times across year 2017, calculates how many days pro year the user would get up after sunrise in each city and returns the best city

External data: cities_base.txt, countries_base.txt (Google Drive)
Libraries: XML, httr, chron

Plot example

About

Scraping and plotting sunrise times in different cities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages