{"id":15285265,"url":"https://github.com/andrelmlins/puppeteer-extra-plugin-auto-scroll","last_synced_at":"2025-04-12T23:54:09.071Z","repository":{"id":42670680,"uuid":"252249269","full_name":"andrelmlins/puppeteer-extra-plugin-auto-scroll","owner":"andrelmlins","description":"A auto scroll plugin for puppeteer-extra","archived":false,"fork":false,"pushed_at":"2024-06-18T15:20:09.000Z","size":62,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:54:00.692Z","etag":null,"topics":["auto-scroll","infinite-scroll","puppeteer","puppeteer-extra","puppeteer-extra-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrelmlins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T17:59:25.000Z","updated_at":"2024-08-03T20:04:16.000Z","dependencies_parsed_at":"2025-02-22T13:33:51.618Z","dependency_job_id":"97ac8e8e-61b7-45b7-9d48-657ae1286243","html_url":"https://github.com/andrelmlins/puppeteer-extra-plugin-auto-scroll","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fpuppeteer-extra-plugin-auto-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fpuppeteer-extra-plugin-auto-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fpuppeteer-extra-plugin-auto-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fpuppeteer-extra-plugin-auto-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrelmlins","download_url":"https://codeload.github.com/andrelmlins/puppeteer-extra-plugin-auto-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647234,"owners_count":21139083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-scroll","infinite-scroll","puppeteer","puppeteer-extra","puppeteer-extra-plugin"],"created_at":"2024-09-30T15:03:58.576Z","updated_at":"2025-04-12T23:54:09.025Z","avatar_url":"https://github.com/andrelmlins.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppeteer-extra-plugin-auto-scroll\n\n\u003e A plugin for [puppeteer-extra](https://github.com/berstend/puppeteer-extra) to auto scroll.\n\n[![npm version](https://badge.fury.io/js/puppeteer-extra-plugin-auto-scroll.svg)](https://www.npmjs.com/package/puppeteer-extra-plugin-auto-scroll) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/puppeteer-extra-plugin-auto-scroll/blob/master/LICENSE) [![Build Status](https://travis-ci.com/andrelmlins/puppeteer-extra-plugin-auto-scroll.svg?branch=master)](https://travis-ci.com/andrelmlins/puppeteer-extra-plugin-auto-scroll)\n\n## Install\n\n```sh\nnpm install puppeteer-extra-plugin-auto-scroll\n# or\nyarn add puppeteer-extra-plugin-auto-scroll\n```\n\nIf this is your first [puppeteer-extra](https://github.com/berstend/puppeteer-extra) plugin here's everything you need:\n\n```sh\nyarn add puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scroll\n# or\nnpm install puppeteer puppeteer-extra puppeteer-extra-plugin-auto-scroll\n```\n\n## Usage\n\n```js\nconst puppeteer = require('puppeteer-extra');\nconst autoScrollPlugin = require('puppeteer-extra-plugin-auto-scroll');\n\npuppeteer.use(autoScrollPlugin());\n\nasync function getPage(url) {\n  const browser = await puppeteer.launch({ headless: false });\n  const page = await browser.newPage();\n  await page.goto(url);\n  await page.autoScroll();\n\n  let content = await page.content();\n  await browser.close();\n  return content;\n}\n```\n\n## Params\n\nParameters of the `autoScroll` function in order:\n\n### `selector`\n\nType `String` Default: `body` Required: `false`\n\n### `distance`\n\nType `Number` Default: `100` Required: `false`\n\n### `timeout`\n\nType `String` Default: `1000` Required: `false`\n\n## NPM Statistics\n\nDownload stats for this NPM package\n\n[![NPM](https://nodei.co/npm/puppeteer-extra-plugin-auto-scroll.png)](https://nodei.co/npm/puppeteer-extra-plugin-auto-scroll/)\n\n## License\n\n`puppeteer-extra-plugin-auto-scroll` is open source software [licensed as MIT](https://github.com/andrelmlins/puppeteer-extra-plugin-auto-scroll/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fpuppeteer-extra-plugin-auto-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrelmlins%2Fpuppeteer-extra-plugin-auto-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fpuppeteer-extra-plugin-auto-scroll/lists"}