an update to readme, update to i dont know anymore i am tired and have to go to sleep look at the diff

This commit is contained in:
booboy 2018-11-10 04:47:41 -06:00
parent fa41c0cb7f
commit bd6aec9542
4 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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

12
lib/examples/examples.rb Executable file → Normal file
View file

@ -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')

0
lib/option_parser.rb Executable file → Normal file
View file