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
| // Run GOOGLE CHROME - WORKING AS OF JULY 21 2025 | |
| // Please @ me in the comments if this stops working, I will try to get it working again within the month | |
| // INSTRUCTIONS | |
| // 1. Open Instagram in Chrome | |
| // 2. Search for a hashtag (eg. https://www.instagram.com/explore/tags/hikingadventures/) | |
| // 3. Click on a photo to reveal the like button as well as arrows for navigating between photos | |
| // 3. Open developer tools by right clicking on the page and clicking "INSPECT" | |
| // 4. Copy the code below and paste in the developer tools console and press enter to run | |
| // 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background) |
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
| /* Enhancements to the Twitter Scraping Script: | |
| This update to the script introduces a more robust mechanism for extracting detailed interaction data from tweets as they are scraped from Twitter. Previously, the script focused on collecting basic content such as the tweet's text. Now, it has been augmented to include a comprehensive extraction of interaction metrics, including replies, reposts, likes, bookmarks, and views, for each tweet. | |
| Key Changes: | |
| 1. Improved Data Extraction: | |
| - The script now searches through all elements within a tweet that have an `aria-label` attribute, filtering for labels that contain key interaction terms (replies, reposts, likes, bookmarks, views). This ensures that only relevant `aria-labels` are considered for data extraction. | |
| 2. Flexible Interaction Data Parsing: |
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
| /* | |
| the twitter api is stupid. it is stupid and bad and expensive. hence, this. | |
| Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes. | |
| When finished, it downloads a JSON file containing the raw text content of every bookmark. | |
| for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please? | |
| */ |
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
| // Run GOOGLE CHROME - WORKING AS OF JULY 21 2025 | |
| // Please @ me in the comments if this stops working, I will try to get it working again within the month | |
| // INSTRUCTIONS | |
| // 1. Open Instagram in Chrome | |
| // 2. Search for a hashtag (eg. https://www.instagram.com/explore/tags/hikingadventures/) | |
| // 3. Click on a photo to reveal the like button as well as arrows for navigating between photos | |
| // 3. Open developer tools by right clicking on the page and clicking "INSPECT" | |
| // 4. Copy the code below and paste in the developer tools console and press enter to run | |
| // 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background) |
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
| // Run GOOGLE CHROME - WORKING AS OF MARCH 23 2025 | |
| // Please @ me in the comments if this stops working, I will try to get it working again within the month | |
| // INSTRUCTIONS | |
| // 1. Open Instagram in Chrome | |
| // 2. Click on "followers" on any Instagram profile so you can see the list of followers | |
| // 3. Open developer tools by right clicking on the page and clicking "INSPECT" | |
| // 4. Copy the code below and paste in the developer tools console and press enter to run | |
| // 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background) |