This scraper is coded using python to scrape through 100 recent instagram post with the hashtag #topupshopeepay as part of a challenge by Shopee. It uses the library Selenium and BeautifulSoup to mannually go through each instagram post and extract the details like Username, Post_URL, Total_Likes, and Post_Upload_Date, and then stores these information into a CSV file.
- Before running the codes, please ensure that you have the required packages installed.
pip install selenium
pip install webdriver-manager
pip install beautifulsoup4
pip install pandas
- After installation of packages, modify the
email
andpw
variable with a valid email address and password that will able to access and log into Instagram. - Lastly change the file path in
df.to_csv('C:/Users/user/desktop/details.csv')
to the directory that you would like the csv file to be stored in.