This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script is using python-twitter SDK (https://github.com/bear/python-twitter) | |
All key and secret strings can be generated by creating an app in https://apps.twitter.com/ | |
""" | |
import twitter | |
consumer_key = '' | |
consumer_secret = '' | |
access_token_key = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = (file) => { | |
const path = require('path'); | |
const pdf = require('pdf-poppler'); | |
let opts = { | |
format: 'jpeg', | |
out_dir: path.dirname(file), | |
out_prefix: path.basename(file, path.extname(file)), | |
page: null | |
}; |