Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 854 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 854 Bytes

jadwalsholat

Grab Shalat / Adzan schedule for Indonesia country based on http://jadwalsholat.pkpu.or.id/

This is a Scrapy project to scrape adzan schedules in Indonesia

This project is only meant for educational purposes.

Requirement

Scrapy, check installation steps on http://doc.scrapy.org/en/latest/intro/install.html

How to use

You can choose output format between json and csv

  • scrapy crawl jadwalsholat -a city_id=83 -o jadwal.json
  • scrapy crawl jadwalsholat -a city_id=83 -o jadwal.csv

You can add date variable in output filename to store the result based on date

scrapy crawl jadwalsholat -a city_id=83 -o "$(date +'%Y-%m').json"

It would generate file like this

/home/user/jadwalsholat/2015-08.json

Column description

c = City d = Day s = Shubuh t = Terbit z = dZuhur a = Ashar m = Maghrib i = Isya