pip3 install pipenv
pipenv shell
| const request = require('request'); | |
| const cheerio = require('cheerio'); | |
| const fs = require('fs'); | |
| const writeStream = fs.createWriteStream('post.csv'); | |
| // Write Headers | |
| writeStream.write(`Title,Link,Date \n`); | |
| request('http://codedemos.com/sampleblog', (error, response, html) => { | |
| if (!error && response.statusCode == 200) { |
| /* bling.js */ | |
| const $ = document.querySelector.bind(document); | |
| const $$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function (name, fn) { | |
| this.addEventListener(name, fn); | |
| } | |
| NodeList.prototype.__proto__ = Array.prototype; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000I hereby claim:
To claim this, I am signing this object:
| /* Device = Most of the Smartphones Mobiles (Portrait) */ | |
| $screen-xxs-min: 320px; | |
| $screen-xxs-max: 480px; | |
| /* Device = Low Resolution Tablets, Mobiles (Landscape) */ | |
| $screen-xs-min: 481px; | |
| $screen-xs-max: 767px; | |
| /* Device = Tablets, Ipads (portrait) */ | |
| $screen-sm-min: 768px; |