Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mengzhuo/cookiestxt
cookiestxt implement parser of cookies txt format
https://github.com/mengzhuo/cookiestxt
Last synced: about 2 months ago
JSON representation
cookiestxt implement parser of cookies txt format
- Host: GitHub
- URL: https://github.com/mengzhuo/cookiestxt
- Owner: mengzhuo
- License: mit
- Created: 2017-10-09T11:27:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T06:02:59.000Z (11 months ago)
- Last Synced: 2024-12-01T08:22:10.658Z (about 2 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 17
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-Char - cookiestxt - provides parser of cookies.txt file format. (Authentication and OAuth / Contents)
- awesome-go - cookiestxt - provides parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go-cn - cookiestxt
- awesome-go - cookiestxt - provides parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt
- awesome-go - cookiestxt - provides parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt - provides parser of cookies.txt file format. - :arrow_down:0 - :star:0 (Authentication and OAuth)
- awesome-go - cookiestxt - cookiestxt implement parser of cookies txt format - ★ 1 (Authentication and OAuth)
- awesome-go-cn - cookiestxt
- awesome-go-with-stars - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go - cookiestxt - 提供解析cookie文件格式。 (<span id="身份验证和oauth-authentication-and-auth">身份验证和OAuth Authentication and Auth</span>)
- fucking-awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- fucking-awesome-go - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- awesome-go-cn - cookiestxt
- awesome-go-plus - cookiestxt - provides a parser of cookies.txt file format. ![stars](https://img.shields.io/badge/stars-17-blue) (Authentication and OAuth)
- awesome-go-plus - cookiestxt - provides a parser of cookies.txt file format. (Authentication and OAuth)
- jimsghstars - mengzhuo/cookiestxt - cookiestxt implement parser of cookies txt format (Go)
README
# cookiestxt
[![Build Status](https://github.com/mengzhuo/cookiestxt/actions/workflows/go.yml/badge.svg)](https://github.com/mengzhuo/cookiestxt/actions)
[![Go Reference](https://pkg.go.dev/badge/github.com/mengzhuo/cookiestxt.svg)](https://pkg.go.dev/github.com/mengzhuo/cookiestxt)
[![GoReportCard](https://goreportcard.com/badge/github.com/mengzhuo/cookiestxt)](https://goreportcard.com/report/github.com/mengzhuo/cookiestxt)
[![Coverage Status](https://coveralls.io/repos/github/mengzhuo/cookiestxt/badge.svg?branch=master)](https://coveralls.io/github/mengzhuo/cookiestxt?branch=master)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go)cookiestxt implement parser of cookies txt format
## Usage
```golang
package mainimport (
"log"
"strings""github.com/mengzhuo/cookiestxt"
)func main() {
buf := strings.NewReader(`
# This example taken from http://www.cookiecentral.com/faq/#3.5
#HttpOnly_.netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103
`)
cl, err := cookiestxt.Parse(buf)
log.Print(cl, err)
}
``````
$ go run main.go[NETSCAPE_ID=100103; Path=/; Domain=netscape.com; Expires=Fri, 31 Dec 1999 23:59:59
GMT; HttpOnly]
```