
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
tq-scroll-scrape
Advanced tools
Python library for automating scrolling and downloading web pages via Selenium. This is especially useful for pages that utilize infinite scrolling.
Download ChromeDriver from https://chromedriver.chromium.org/downloads. Choose the version that matches the Chrome browser running on your system.
Download GeckoDriver for Firefox from https://github.com/mozilla/geckodriver/releases.
Install the package by running pip install tq-scroll-scrape.
Here is sample code demonstrating how to download a page:
from tq_scroll_scrape.scroll_and_scrape import ScrollAndScrape
url = "https://www.espn.com/"
driver_path = "{PATH TO DRIVER EXECUTABLE}"
scroll_scraper = ScrollAndScrape(driver_path)
scroll_scraper.download(url)
scroll_scraper.driver.close()
scroll_scraper.driver.quit()
This library will scroll the page until it reaches the end. The scroll height can be controlled by passing
the scroll_by kwarg. If omitted the value of document.body.scrollHeight is used.
To give items the chance to render, the library will wait before scrolling again. The wait time can be controlled via
the sleep_after_scroll_seconds parameter. If omitted, the default value is two seconds.
The example below scrolls the page by 500 pixels, waiting 5 seconds between each scroll.
from tq_scroll_scrape.scroll_and_scrape import ScrollAndScrape
driver_path = "{PATH TO DRIVER EXECUTABLE}"
scroll_scraper = ScrollAndScrape(driver_path)
downloader.download(url, sleep_after_scroll_seconds=5, scroll_by=500)
downloader.driver.close()
downloader.driver.quit()
The download function accepts a callback that executes after the page is downloaded. The page source is passed into
the callback. The example below saves the downloaded page to an html file.
from tq_scroll_scrape.scroll_and_scrape import ScrollAndScrape
def save_file(source: str):
with open("espn.html", "w") as file:
file.write(source)
url = "https://www.espn.com/"
driver_path = "{PATH TO DRIVER EXECUTABLE}"
scroll_scraper = ScrollAndScrape(driver_path)
downloader.download(url, save_file)
downloader.driver.close()
downloader.driver.quit()
FAQs
TQ-scroll-scrape is a library for downloading web pages via Selenium.
We found that tq-scroll-scrape demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.