{"_id":"@arifzyn/scraper","_rev":"1-17c0de91e5dc0c06a294ee97bc851b9c","name":"@arifzyn/scraper","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@arifzyn/scraper","version":"1.0.0","description":"Social media scraper module","main":"lib/cjs/index.js","module":"lib/esm/index.js","types":"lib/@types/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js","types":"./lib/@types/index.d.ts"}},"scripts":{"test":"npm run test:cjs & npm run test:esm","test:cjs":"mocha ./lib/cjs/test/*.js","test:esm":"mocha ./lib/esm/test/*.js","build":"npm run build:cjs && npm run build:esm && npm run build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","build:types":"tsc -p tsconfig.types.json","compile":"node ../../scripts/compile-typescript.js && npm run write:package","write:package":"node ../../scripts/write-package.js"},"repository":{"type":"git","url":"git+https://github.com/ArifzynXD/scraper.git"},"author":{"name":"ArifzynXD"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/ArifzynXD/scraper/issues"},"homepage":"https://github.com/ArifzynXD/scraper/tree/master/packages/scraper-sosmed#readme","dependencies":{"form-data":"^4.0.0","got":"^11.8.6","human-readable":"^0.2.1","zod":"^3.20.2"},"devDependencies":{"@types/mocha":"^10.0.1","@types/node":"^18.11.17","mocha":"^10.2.0"},"peerDependencies":{"ws":"^8.13.0"},"_id":"@arifzyn/scraper@1.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-STWM4jEdQgPbWhZBPYYsPSjuQM/2Ca/tJUIqZl5hDKDzhVkiqcpDPBWfL5HyQbekn5yFNFuCMm09AMGdqADZ2A==","shasum":"5a14a0ca4df53c8c82a99617376b7eef34425337","tarball":"https://registry.npmjs.org/@arifzyn/scraper/-/scraper-1.0.0.tgz","fileCount":52,"unpackedSize":164877,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICldDEgsD44YFsNNnh/fFMwHa+67womiFcYbOh59AdGkAiBvXE9lVt/vr1Pbeje+11IQn+3cKmdU1RceMCrIyKPa5A=="}]},"_npmUser":{"name":"arifzyn","email":"arifzyn906@gmail.com"},"directories":{},"maintainers":[{"name":"arifzyn","email":"arifzyn906@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scraper_1.0.0_1702026703799_0.6485582734356217"},"_hasShrinkwrap":false},"1.1.2":{"name":"@arifzyn/scraper","version":"1.1.2","description":"Social media scraper module","main":"lib/cjs/index.js","module":"lib/esm/index.js","types":"lib/@types/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js","types":"./lib/@types/index.d.ts"}},"scripts":{"test":"npm run test:cjs & npm run test:esm","test:cjs":"mocha ./lib/cjs/test/*.js","test:esm":"mocha ./lib/esm/test/*.js","build":"npm run build:cjs && npm run build:esm && npm run build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","build:types":"tsc -p tsconfig.types.json","compile":"node ../../scripts/compile-typescript.js && npm run write:package","write:package":"node ../../scripts/write-package.js"},"repository":{"type":"git","url":"git+https://github.com/ArifzynXD/scraper.git"},"author":{"name":"ArifzynXD"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/ArifzynXD/scraper/issues"},"homepage":"https://github.com/ArifzynXD/scraper/tree/master/packages/scraper-sosmed#readme","dependencies":{"form-data":"^4.0.0","got":"^11.8.6","human-readable":"^0.2.1","zod":"^3.20.2"},"devDependencies":{"@types/mocha":"^10.0.1","@types/node":"^18.11.17","mocha":"^10.2.0"},"peerDependencies":{"ws":"^8.13.0"},"_id":"@arifzyn/scraper@1.1.2","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-ZZCrXI/fRBs4YUIGFPmin9OUNveGGPXfqqAFWqFvXYPjwt9IxN9JK29aZZrBZwGYsHMazUB/8InkWMLbztIaUw==","shasum":"e343c4036e0c4365f2c585fada393b30731683a3","tarball":"https://registry.npmjs.org/@arifzyn/scraper/-/scraper-1.1.2.tgz","fileCount":52,"unpackedSize":164752,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP4GjMJkwxL8cbxeQbk5uLgC/bhYJqpnLCWE1kpV5u0gIhAMU0kmyGwXDL22DdP0Db2fWJEAj+EQBnk4A5lYo+5kvs"}]},"_npmUser":{"name":"arifzyn","email":"arifzyn906@gmail.com"},"directories":{},"maintainers":[{"name":"arifzyn","email":"arifzyn906@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scraper_1.1.2_1702026814324_0.001365248701986621"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-08T09:11:43.717Z","1.0.0":"2023-12-08T09:11:44.067Z","modified":"2023-12-08T09:13:34.634Z","1.1.2":"2023-12-08T09:13:34.479Z"},"maintainers":[{"name":"arifzyn","email":"arifzyn906@gmail.com"}],"description":"Social media scraper module","homepage":"https://github.com/ArifzynXD/scraper/tree/master/packages/scraper-sosmed#readme","repository":{"type":"git","url":"git+https://github.com/ArifzynXD/scraper.git"},"author":{"name":"ArifzynXD"},"bugs":{"url":"https://github.com/ArifzynXD/scraper/issues"},"license":"GPL-3.0-or-later","readme":"# Social media Scraper\r\nScraper social media data\r\n\r\n## Installation\r\n```sh\r\nnpm i @arifzyn/scraper\r\n```\r\n\r\n## Usage \r\nExample tiktok video download\r\n```ts\r\n// Import module\r\nimport { savefrom, tiktokdl } from '@arifzyn/scraper'\r\n\r\nconst url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243?is_from_webapp=1&sender_device=pc&web_id6982004129280116226'\r\n// Using tiktokdl\r\nconst data = await tiktokdl(url)\r\nconsole.log(data) // JSON\r\n// Using savefrom\r\nconst result = await savefrom(url)\r\nconsole.log(result) // JSON\r\n```\r\nExample download youtube video\r\n```ts\r\nimport { youtubedl } from '@arifzyn/scraper'\r\n\r\nconst data = await youtubedl('https://youtu.be/iik25wqIuFo')\r\nconsole.log(data) // JSON\r\nconsole.log(Object.keys(data.video)) // List of resolution/quality\r\nconst url = await data.video['720p'].download() // Download '720p' video\r\nconsole.log(url) // string\r\n```","readmeFilename":"README.md"}