Skip to content

listingclown3/bstock-scraper

Repository files navigation

bstock-scraper

Scrapes BStock inventory and extracts CSV files :)

DISCLAIMER

this code doesn't work anymore, new login stuff got changed...

tos

this is 105% against bstock TOS but ¯_(ツ)_/¯

  • for the education!

note

  • not exactly usable unless you can find a way to clone gitpod docker file then downloada all the dependencies manually (oracle doesn't use amd64 or sm)

todo

  • export data to webhook/readable format
  • add a website to paste this data and download the data
  • bypass cloudflare
  • add GameStop functionality (read below if anyone is interested in fixing it)
  • create a shell command to download all dependencies (nodejs, pip, chromemium)
  • create an auto price comparison system
  • webhook/POST integration (package maybe?)

how to use

  1. download deps from npm i index.js & puppeteer_login.js and pip install -r requirements.txt from Cloudflare-Bypass-local
  2. chmod +x run.sh
  3. ./run.sh
  4. check manifests for compilation of data and auction_details for prices, etc.

errors

  • 403 error code probably means you messed up the authorization or you got blocked by CloudFlare (yikes, it happened to me)

  • if on aarch64 (uname -m) sudo apt update sudo apt install chromium-browser -y

  • if you get an invalid link it's 105% your cookies are bad just saying.

    add

       const puppeteer = require('puppeteer-core');
    
       const browser = await puppeteer.launch({
          executablePath: '/usr/bin/chromium-browser', // Use installed Chromium
          headless: true
       });
    
      or just the executablePath for the chrome browswer
    
      or on google-stable
    
      const puppeteer = require('puppeteer-core');
    
      const browser = await puppeteer.launch({
        executablePath: '/usr/bin/google-chrome', // Change this if the path is different
        headless: true
      });
    
    

About

scraper to look at prices, bids, profit, etc to look at less

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors