ChoiceCoin / Voting

A repository for voting systems using Choice Coin.
Other
641 stars 1.44k forks source link

jessika_rewards2 web scraper #1160

Closed terrykeng closed 2 years ago

terrykeng commented 2 years ago

MY WEB SCRAPING SCRIPT USING SELENIUM PROCESS

On the processes of writing this script using beautiful soup I encountered a problem that the algo explorer webpage is a dynamic one (i.e the data are loaded dynamically with JavaScript) making the html in the web inspector diffrent from that scraped by beautiful soup . So I had to change my approach and method using selenium.

Selenium

The second approach I implented to scraping the dynamic web pages uses Python packages capable of executing the JavaScript itself, so that we can scrape the website as we view it in our browser. Selenium works by automating browsers to execute JavaScript to display a web page as we would normally interact with it. These codes illustrate how to use selenium to scrape algo expolorer of the FROM and AMOUNT

check VIDEO

How to Run locally

I hope this script does enough justice to the task

THANK YOU