Giter VIP home page Giter VIP logo

hn-url-extractor's Introduction

Hacker News URL Extractor

The "Who is hiring" and "Who wants to be hired" posts on Hacker News are great but they're a pain to browse through. Generally, what you're interested in is the URLs to sites or candidates and associated email addresses not skimming 100s of comments.

This doodad attempts to solve that problem by automatically extracting URLs and email addresses from a Hacker News thread. It also fetches the HTML meta keyword and description for the discovered URLs so that you can quickly get a sense what the company does.

Use it

This is built with TypeScript and compiled to JavaScript in the dist/ folder.

First, grab the code. Either clone the repository or download the ZIP from Github:

$ git clone [email protected]:Setfive/hn-url-extractor.git

Then grab the dependencies via npm:

$ npm install

And you're ready to rock.

There's not too many options:

  • url - a single HN URL to process
  • urlsFile - a file containing a list of HN URLs to process
  • outFile - path to write the results out. Defaults to results.csv
  • format - indicate CSV or JSON output. Defaults to csv.

Here's some examples of how to run it from the root of the project:

npm start -- --url=https://news.ycombinator.com/item?id=24651639
npm start -- --urlsFile=sampleUrls.txt
npm start -- --urlsFile=sampleUrls.txt --format=json --outFile=/tmp/hndata.json

hn-url-extractor's People

Contributors

adatta02 avatar

Watchers

 avatar  avatar James Cloos avatar  avatar

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.