Skip to content

Instantly share code, notes, and snippets.

View nemo's full-sized avatar

Nima Gardideh nemo

View GitHub Profile
@nemo
nemo / __main__.js
Last active September 11, 2017 16:42
StdLIb Distributed Scraper
const request = require('request-promise-native');
const cheerio = require('cheerio');
const parseAll = require('html-metadata').parseAll;
/**
* A simple and powerful scraper
* @param {string} url Url to fetch
* @param {string} userAgent Request's User Agent
* @param {array} queries Queries to apply (using cheerio)
* @returns {object}
@nemo
nemo / example.js
Last active September 11, 2017 06:22
StdLib Distributed Scraper Example
const lib = require('lib');
lib.username.scraper['@local']({
url: 'https://github.com/search?q=scraping&ref=opensearch',
queries: [
[".repo-list-item h3 a", "text"],
[".repo-list-item h3 a", "attr", ["href"]]
]
})
.then(console.log)
@nemo
nemo / README.md
Last active May 23, 2018 20:30
You don't have to edit MessageBird or AscendDB's code. Create a new service with the following code!
Verifying my Blockstack ID is secured with the address 18fLp5SMHBpY5v7tNaYpiUjUYFYZLNmthd https://explorer.blockstack.org/address/18fLp5SMHBpY5v7tNaYpiUjUYFYZLNmthd
@nemo
nemo / ashby.css
Last active July 11, 2023 23:08
Ashby CSS
/* stylelint-disable */
/* These variables can be used to control values throughout the job board. */
/* The max width of the job board container */
--widthMaxJobBoard: 800px;
/* The max width of the application form section */
/* --widthMaxJobBoard: 800px; */