diff --git a/README.md b/README.md index f7f2d9f..9f3ef6c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ The data directory will then be populated with pastebin raw paste files with the ```shell pastebin_paste_key_agiArDuG ``` +where the last characters are the paste key for that specfici paste. ### To Add: - fulltext search of raw pastes via elastic search, mysql, postgres, sqlite, or some other method diff --git a/lib/configuration.rb b/lib/configuration.rb index 95be837..f7f1bb0 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -10,5 +10,6 @@ class Configuration end def build_cron + # need to lookup what we have to put in PATH in the cron to inherit the environment variables for the api key,username,password end end diff --git a/lib/examples/examples.rb b/lib/examples/examples.rb old mode 100755 new mode 100644 index eea65a5..50cc827 --- a/lib/examples/examples.rb +++ b/lib/examples/examples.rb @@ -13,17 +13,17 @@ api_dev_key = ENV['pastebin_api_key'] #### CREATE PASTE # prepare some sample paste data to send -#paste_data = 'this is a test paste two two two.' +paste_data = 'this is a test paste two two two.' # prepare our paste params -#params = { "api_dev_key": api_dev_key, "api_option": "paste", "api_paste_code": paste_data } -#puts pb.create_paste(params) +params = { "api_dev_key": api_dev_key, "api_option": "paste", "api_paste_code": paste_data } +puts pb.create_paste(params) #### SCRAPE PUBLIC PASTES -#puts pb.scrape_public_pastes +puts pb.scrape_public_pastes #### SCRAPING - WHITELISTED IP ONLY #### SCRAPE RAW PASTE DATA OF A PASTE KEY -#puts pb.raw_paste_data('Gkb4ukK9') +puts pb.raw_paste_data('Gkb4ukK9') #### SCRAPE RAW METADATA OF A PASTE KEY (WORKS WITH WHITELISTED IP ONLY) -#puts pb.raw_paste_metadata('Gkb4ukK9') +puts pb.raw_paste_metadata('Gkb4ukK9') diff --git a/lib/option_parser.rb b/lib/option_parser.rb old mode 100755 new mode 100644