Skip to content

fjtkfm/pocket_archive_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocket in Ruby


Description

CLI tools to operate items in Pocket - by Ruby

Dependency

  • Ruby 2.4.2

Setup

  1. Clone this repository
git clone git@github.com:piruty/pocket_in_ruby.git
  1. You have to get consumer key and access token to use Pocket web Api

See this pocket support page, and get them.

  1. 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

Usage

  1. 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

Licence

MIT

Author

piruty

References

Pocket API: Documentation Overview

About

CLI tools for operate items in Pocket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages