Skip to content

Commit

Permalink
fix: downgrade to compatible puppeteer version, install instructions
Browse files Browse the repository at this point in the history
Fixes mifi#145
  • Loading branch information
skoenig committed Nov 29, 2024
1 parent 79d2a62 commit ab26a86
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 184 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ There is also a GUI application for those who don't want to code: [SimpleInstaBo
- First install [Node.js](https://nodejs.org/en/) 8 or newer.
- On MacOS, it's recommended to use [homebrew](https://brew.sh/): `brew install node`

- Create a new directory with a file like [example.js](https://github.com/mifi/instauto/blob/master/example.js)

- Adjust your `example.js` to your needs. If you want to see how it would work without doing any invasive actions, use the `dryRun: true` option. Toggle `headless` to see it in action.

- Open a terminal in the directory
- Copy `example.js` to `config.js` and adjust it to your needs. If you want to see how it would work without doing any invasive actions, use the `dryRun: true` option. Toggle `headless` to see it in action.

- Run `npm i -g yarn`

- Run `yarn add puppeteer instauto`
- Run `yarn install --frozen-lockfile`

- Run `node example`
- Run `node config.js`

You can run this code for example once every day using cron or pm2 or similar

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"fs-extra": "^5.0.0",
"lodash": "^4.17.10",
"puppeteer": "^22.6.5",
"puppeteer": "<22.0.0",
"user-agents": "^1.1.178"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit ab26a86

Please sign in to comment.