Skip to content

Instantly share code, notes, and snippets.

@munanadi
Created June 15, 2023 20:39
Show Gist options
  • Select an option

  • Save munanadi/826ed334739cf4279381e35f821306f9 to your computer and use it in GitHub Desktop.

Select an option

Save munanadi/826ed334739cf4279381e35f821306f9 to your computer and use it in GitHub Desktop.
Scrapes Apartment data from BAF website
// Head to https://baf.org.in/baf_members
// Open Console, Copy paste the script
// Copy your data from `result` variable
let result = ""
for(let i=0; i<62;i++){
tbody = document.querySelectorAll('tbody')[2]
allRows = new Array(tbody.querySelectorAll('tr'))
allRows = Array.from(allRows[0])
result += allRows.map(r => r.innerText)
result += "\n"
document.querySelector('tbody td:nth-child(4)').click()
}
result = result.split(",")
console.log(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment