Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapuri/steel-jelly
A Go library and CLI tool for porn sites
https://github.com/sapuri/steel-jelly
cli eroterest golang library pornhub
Last synced: 24 days ago
JSON representation
A Go library and CLI tool for porn sites
- Host: GitHub
- URL: https://github.com/sapuri/steel-jelly
- Owner: sapuri
- License: mit
- Created: 2021-01-13T15:45:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-06T02:42:33.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T02:02:00.876Z (5 months ago)
- Topics: cli, eroterest, golang, library, pornhub
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# steel-jelly
A Go library and CLI tool for porn sites## Installation
### Library
```
go get github.com/sapuri/steel-jelly/steeljelly
```### CLI
```
go get github.com/sapuri/steel-jelly/cmd/steeljelly
```(optional) To run unit tests:
```
make generate
make test
```## Examples
### Library
```go
package mainimport (
"fmt"
"log""github.com/sapuri/steel-jelly/steeljelly"
)func main() {
const videoURL = "https://jp.pornhub.com/view_video.php?viewkey=ph5f756e8a650b3"client := steeljelly.NewClient()
res, err := client.GetThumbnailURLs(steeljelly.SiteTypePornhub, videoURL)
if err != nil {
log.Fatal(err)
}// https://ei.phncdn.com/videos/202010/01/356624402/original/(m=eaAaGwObaaaa)(mh=3zxiu3wi3w-_5ZlG)1.jpg
fmt.Println(res[0])
}
```### CLI
Usage
```
steeljellyNAME:
steeljelly - A CLI tool for porn sitesUSAGE:
steeljelly [global options] command [command options] [arguments...]VERSION:
0.0.1COMMANDS:
eroterest エロタレスト
pornhub Pornhub
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
```(ex.) Retrieve thumbnail URLs of Pornhub video
```bash
steeljelly pornhub get-thumbnails --url https://jp.pornhub.com/view_video.php\?viewkey\=ph5f756e8a650b3
# https://ei.phncdn.com/videos/202010/01/356624402/original/(m=eaAaGwObaaaa)(mh=3zxiu3wi3w-_5ZlG)1.jpg
# ...
```