{"size": 1039, "ext": "js", "max_stars_repo_path": "lib/US/IL/islamic-center-of-romeoville/index.js", "max_stars_repo_name": "praytime/praytime", "max_stars_repo_stars_event_min_datetime": "2018-11-24T17:44:01.000Z", "max_stars_repo_stars_event_max_datetime": "2018-11-24T17:44:01.000Z", "max_issues_repo_path": "lib/US/IL/islamic-center-of-romeoville/index.js", "max_issues_repo_name": "praytime/praytime", "max_issues_repo_issues_event_min_datetime": "2018-07-23T23:45:26.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-29T13:38:31.000Z", "max_forks_repo_path": "lib/US/IL/islamic-center-of-romeoville/index.js", "max_forks_repo_name": "praytime/praytime", "max_forks_repo_forks_event_min_datetime": "2018-12-11T23:32:11.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-11T23:32:11.000Z"}
{"max_stars_count": 1, "max_issues_count": 36, "max_forks_count": 1, "avg_line_length": 30.5588235294, "max_line_length": 72, "alphanum_fraction": 0.6294513956}
const axios = require('axios')
const cheerio = require('cheerio')

const ids = [
  {
    uuid4: 'a988f430-650d-4918-800d-21be23ca34a1',
    name: 'Islamic Center of Romeoville',
    url: 'http://thfoundation.com',
    address: '14455 S Budler Rd, Plainfield, IL 60544, USA',
    timeZoneId: 'America/Chicago',
    placeId: 'ChIJ2eKwWJlfDogRss6NduNi-TM',
    geo: {
      latitude: 41.620172,
      longitude: -88.153147
    }
  }
]
// ChIJh5E_5ptfDogR7I7hPecDLLk - ta'leem ul haq

exports.run = async () => {
  const response = await axios.get('http://thfoundation.com')
  const $ = cheerio.load(response.data)

  ids[0].fajrIqama = $('td:contains(Fajr) + td').text().trim()
  ids[0].zuhrIqama = $('td:contains(Zuhar) + td').text().trim()
  ids[0].asrIqama = $('td:contains(Asr) + td').text().trim()
  ids[0].maghribIqama = $('td:contains(Maghrib) + td').text().trim()
  ids[0].ishaIqama = $('td:contains(Isha) + td').text().trim()
  ids[0].juma1 = $('th:contains(Jumu)').text().match(/\d{1,2}:\d{2}/)[0]

  return ids
}
exports.ids = ids
