GithubHelp home page GithubHelp logo

prescience-data / foundation Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 7.0 864 KB

🧱 A uniform template to use as a foundation for Puppeteer bot construction.

Shell 2.28% TypeScript 97.72%
bot botting framework playwright puppeteer puppeteer-extra scraper scraping

foundation's People

Contributors

clouedoc avatar prescience-data avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

foundation's Issues

Prisma Updates, Puppeteer Updates

Hello, and thank you for providing a great foundation for puppeteer / scraping. It looks like perhaps some of the code provided here is outdated. I'm working through the changes, but I wanted to provide them here for reference and discussion.

First, prisma appears to have updated with breaking changes. A few other packages seem to have updated as well. I updated the package.json to fix these issues.

-    "build:clear": "rm -rf ./build/app/ && mkdir ./build/app/ && echo * >> ./build/app/.gitignore",
+    "build:clear": "rm -rf ./build/app/ && mkdir -p ./build/app/ && echo * >> ./build/app/.gitignore",
-    "db:migrate": "npx prisma format && npx prisma migrate save --name foundation --experimental && npx prisma migrate up --experimental && npx prisma generate",
+    "db:migrate": "npx prisma format && npx prisma migrate dev --name foundation && npx prisma migrate && npx prisma generate",

Second, when running npm run init after making the changes above I eventually receive the following errors:

node_modules/puppeteer-extra/dist/puppeteer.d.ts:4:10 - error TS2305: Module '"puppeteer"' has no exported member 'ChromeArgOptions'.

4 export { ChromeArgOptions } from 'puppeteer';
           ~~~~~~~~~~~~~~~~

node_modules/puppeteer-extra/dist/puppeteer.d.ts:6:10 - error TS2305: Module '"puppeteer"' has no exported member 'FetcherOptions'.

6 export { FetcherOptions } from 'puppeteer';
           ~~~~~~~~~~~~~~

core/browsers/config.ts:128:3 - error TS2322: Type '{ headless: boolean; ignoreHTTPSErrors: boolean; args: string[]; userDataDir: string; defaultViewport: { width: number; height: number; }; }' is not assignable to type 'LaunchOptions'.
  Object literal may only specify known properties, and 'headless' does not exist in type 'LaunchOptions'.

128   headless: env.BROWSER_HEADLESS === "true",

These look like typescript errors related to puppeteer exports. I'm not sure if this repo is maintained but I wanted to mention this here just in case.

Thanks again!

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.