Skip to content

Commit

Permalink
Feat/update ozbargain referral list (#215)
Browse files Browse the repository at this point in the history
* Updated the ozbargain referral list, updated the source url + the simple code to scrape the data

* Applied lint fix

* Fixed a small error on the manual script to extract the data
  • Loading branch information
hp0210 authored Mar 20, 2024
1 parent 71b6b90 commit ba12a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/referral/services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Service data is scraped from https://www.ozbargain.com.au/wiki/list_of_referral_links
// Go to the above link, run the following code in the console and copy the result back here
// const elements = document.getElementsByClassName('level1'); const finalList = []; for (const t of test) finalList.push(t.outerText.toLowerCase()); console.log(JSON.stringify(finalList))
// const elements = document.getElementsByClassName('level1'); const finalList = []; for (const t of elements) finalList.push(t.outerText.toLowerCase()); console.log(JSON.stringify(finalList))
// @TODO automate the above process later

const OZBARGAIN_SERVICES: string[] = [
Expand Down

0 comments on commit ba12a6f

Please sign in to comment.