New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

subreddit-wiki-scrapper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subreddit-wiki-scrapper

Download any subreddit's wiki and archive it.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Subreddit-Wiki-Scrapper

About

subreddit-wiki-scrapper lets you download any subreddit's wiki and archive it.

currently only the html will be downloaded without any styling to it

Installing

npm i subreddit-wiki-scrapper

Usage

Suppose you want to archive the Piracy subreddit's wiki

const SWS = require("subreddit-wiki-scrapper")

SWS("piracy", "./piracy-wiki", { chromiumPath: 'C:\\path\\for\\chromium.exe' })

This will download the wiki in the piracy-wiki directory

if the given subreddit doesn't have a wiki, an empty .nowiki file will be placed in the dirctory

NOTE: only a chromium browser will work, firefox will NOT work

Arguments

  1. subreddit name
  2. installation path relatively to the current working directory loacation, to avoid cwd path, use an absolute path
  3. options
    • chromiumPath - the path for a chromium browser to run in it - required
    • headless - whether to run chromium in headless mode or not - default true
    • silent - operate in silent mode, there will be no logs in the terminal - default true

Keywords

FAQs

Package last updated on 05 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc