grikomsn / puppet-scraper Goto Github PK
View Code? Open in Web Editor NEWScraping using Puppeteer the sane way ๐คน๐ปโโ๏ธ
Home Page: https://github.com/grikomsn/puppet-scraper
License: MIT License
Scraping using Puppeteer the sane way ๐คน๐ปโโ๏ธ
Home Page: https://github.com/grikomsn/puppet-scraper
License: MIT License
Apparently publishing scrappeteer
to npm does not work and there's no proof on whether it's already in use by a private package or something else:
https://www.npmjs.com/package/scrappeteer | npm publish |
---|---|
So the only options are either changing the project name or resolve the npm registry issue (which I have contacted npm).
Scrappeteer was made for its dead simple web scraper, and I haven't planned on adding other features. Do send your ideas here.
Getting the following errors in Jest when trying to use the module:
Cannot find module 'puppeteer' from 'puppet-scraper.cjs.development.js'
Require stack:
node_modules/puppet-scraper/dist/puppet-scraper.cjs.development.js
node_modules/puppet-scraper/dist/index.js
src/puppeteer.ts
src/puppeteer.test.ts
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:299:11)
at Object.<anonymous> (node_modules/puppet-scraper/dist/puppet-scraper.cjs.development.js:8:33)
I think it is probably this line:
puppet-scraper/src/puppet-scraper.ts
Line 2 in 356e339
It assumes one has puppeteer
installed, but in reality it is also possible to use only puppeteer-core
.
I think, in fact, it would be the preferred way for a library to use the -core
version, as it wouldn't pull in Chromium by default.
The original plan was creating scrappeteer as an npm package, so helping me with this would be nice.
The initial plan was using chrome-aws-lambda instead of chunky boi Chromium, so helping me with this would be nice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.