Coder Social home page Coder Social logo

Containerized nvidia-snatcher about streetmerchant HOT 9 CLOSED

jef avatar jef commented on August 26, 2024
Containerized nvidia-snatcher

from streetmerchant.

Comments (9)

matthewLee711 avatar matthewLee711 commented on August 26, 2024 1

As a quick heads up everyone, my nvidia-snatcher on AWS got blocked. I don't have much experience when it comes to scraping pages, but I recently found this guide to help your bot run a little while longer.

https://www.reddit.com/r/programming/comments/ecvc42/a_guide_to_web_scraping_without_getting_blocked/fbei5dp?utm_source=share&utm_medium=web2x&context=3

I do want to mentioned, the easiest way prevent getting blocked, is by limiting your rate. Change your request interval to 30+ seconds.

from streetmerchant.

jef avatar jef commented on August 26, 2024

I think getting this to not use puppeteer and separating logic would help with containerization. Related to #113

from streetmerchant.

ljmerza avatar ljmerza commented on August 26, 2024

puppeteer needs a display to work. xvfb will do the trick

 RUN apt-get update && \ 
     apt-get install -yq --no-install-recommends \ 
     libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ 
     libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ 
     libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ 
     libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ 
     libnss3 

# Start script on Xvfb
CMD Xvfb :99 -screen 0 1024x768x16 & npm start

I have a docker container for nodejs and xvfb as well: lmerza/xvfb

from streetmerchant.

geman220 avatar geman220 commented on August 26, 2024

Do you mind if we close this out?

from streetmerchant.

matthewLee711 avatar matthewLee711 commented on August 26, 2024

I recommend we keep it open, as I feel the information/discussion is helpful for others going down the path of containerization and web scraping on cloud providers. However, if you feel it is necessary to close, I'm 100% fine with you going forward on it.

from streetmerchant.

geman220 avatar geman220 commented on August 26, 2024

It will still be accessible, just closed. Or you can make a Wiki page https://github.com/jef/nvidia-snatcher/wiki . I'm just not sure what to do with this in Issue tracking.

from streetmerchant.

jef avatar jef commented on August 26, 2024

Related: #174

from streetmerchant.

jef avatar jef commented on August 26, 2024

Not sure what I want do with Docker yet. There are some hurdles and hacks and I don't know if I want to put anything inside the repository.

Feel free to create a Wiki page with instructions on installation. I don't know if I want to support this yet.

from streetmerchant.

geman220 avatar geman220 commented on August 26, 2024

Closing due to the merge of #209 there is also #174. Feel free to create a Wiki page for instructions on docker.

from streetmerchant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.