CLI tools to operate items in Pocket - by Ruby
- Ruby 2.4.2
- Clone this repository
git clone git@github.com:piruty/pocket_in_ruby.git
- You have to get consumer key and access token to use Pocket web Api
See this pocket support page, and get them.
- Add consumer key and access token to ENV parameters
Copy your consumer key and access token, then add them to you .bashrc
echo "POCKET_CONSUMER_KEY=your_consumer_key" >> ~/.bashrc
echo "POCKET_ACCESS_TOKEN=your_access_token" >> ~/.bashrc
- Run script
# Get item randomly and archive it
ruby get_archive_item_randomly .rb
# Archive all items in your Pocket list
ruby archive_all_items.rb
MIT