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: about 1 year 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-06T02:42:33.000Z (over 5 years ago)
- Last Synced: 2025-02-25T07:45:26.978Z (over 1 year 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 main
import (
"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
```
steeljelly
NAME:
steeljelly - A CLI tool for porn sites
USAGE:
steeljelly [global options] command [command options] [arguments...]
VERSION:
0.0.1
COMMANDS:
eroterest エロタレスト
pornhub Pornhub
help, h Shows a list of commands or help for one command
GLOBAL 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
# ...
```