Skip to content

allifizzuddin89/Shopee-MY-GameConsole-Scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopee-MY-GameConsole-Scraping

  • Scraping game console price and type from Shopee MY via API in shopee.com.my
  • Web scraping via API request using Scrapy web scraping framework
  • Scraping framework : Scrapy
  • Scraping through API, extracting data from JSON

Result

  • Please the generated scraped data in result

Requirement :

  • Scrapy 2.7.1
  • Python 3.7 or above
  • Any working environment to install the required packages such as conda or pyenv.

Run

  • The working directory is Shopee-MY-GameConsole-Scraping/shopee_gameconsole_list/shopee_gameconsole_list/spiders/
  • Activate the installed working environment
  • Run the main.py in the working directory.
  • Run in the terminal in the working directory OR simply run
  • Add --O shopee_game.csv in cli to produce the csv file e.g. 'scrapy runspider main.py --O shopee_game.csv'

Install environment

Example How To Run The Script

Troubleshoot

  • Error might happened due to the cookies already expired or request being rejected by the server.
  • Solution: 1. Refresh the cookies OR 2. Using proxy (refer main.py)

DISCLAIMER

  • This work only meant for educational, research and proof of work purpose only.
  • I will not responsible for any illegal activities.
  • Every action is on your own responsibilities.

About

Scraping game console price and type from Shopee MY via API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages