Created
June 15, 2023 20:39
-
-
Save munanadi/826ed334739cf4279381e35f821306f9 to your computer and use it in GitHub Desktop.
Scrapes Apartment data from BAF website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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