
Prompt API - Scraper - Golang Package
PromptAPI
struct is a simple golang wrapper for scraper api
with few more extra cream and sugar.
Requirements
- You need to signup for Prompt API
- You need to subscribe scraper api, test drive is free!!!
- You need to set
PROMPTAPI_TOKEN
environment variable after subscription.
then;
$ go get -u github.com/promptapi/scraper-go
Example Usage
// main.go
Development
Available rake tasks:
$ rake -T
rake default # Default task, show avaliable tasks
rake release:check # Do release check
rake release:publish[revision] # Publish project with revision: major,minor,patch, default: patch
rake serve_doc[port] # Run doc server
rake test[verbose] # Run tests
- Run tests:
rake test
or rake test[-v]
- Run doc server:
rake serve_doc
or rake serve_doc[9000]
Release package (if you have write access):
- Commit your changes
- Run
rake release:check
- If all goes ok, run
rake release:publish
License
This project is licensed under MIT
Contributer(s)
Contribute
All PR’s are welcome!
fork
(https://github.com/promptapi/scraper-go/fork)
- Create your
branch
(git checkout -b my-feature
)
commit
yours (git commit -am 'Add awesome features...'
)
push
your branch
(git push origin my-feature
)
- Than create a new Pull Request!
This project is intended to be a safe,
welcoming space for collaboration, and contributors are expected to adhere to
the code of conduct.