https://github.com/furqansoftware/slinky
Social media URL parser in Go
https://github.com/furqansoftware/slinky
Last synced: 6 months ago
JSON representation
Social media URL parser in Go
- Host: GitHub
- URL: https://github.com/furqansoftware/slinky
- Owner: FurqanSoftware
- License: bsd-3-clause
- Created: 2023-09-19T10:23:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-13T09:38:30.000Z (over 1 year ago)
- Last Synced: 2024-04-09T22:18:00.359Z (about 1 year ago)
- Language: Go
- Homepage: https://hjr265.me/blog/parsing-social-media-urls-in-go-with-slinky/
- Size: 26.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slinky
[](https://pkg.go.dev/github.com/FurqanSoftware/slinky)
Parse social media URLs in Go.
## Usage
``` go
slinky.Parse("https://github.com/hjr265")
// Output:
// &URL{
// Service: slinky.GitHub,
// Type: "User",
// ID: "hjr265",
// Data: map[string]string{,
// "username": "hjr265",
// },
// }
```## URLs Supported
``` go
"facebook.com"
"www.facebook.com"
"web.facebook.com"
"fb.me"// FLOSS.social
"floss.social"// Fostodon
"fosstodon.org"// GitHub
"github.com"
"*.github.io"
"instagram.com"
"www.instagram.com"
"linkedin.com"
"www.linkedin.com"// Telegram
"t.me"
"twitter.com"// YouTube
"youtube.com"
"www.youtube.com"
```## Contributing
Contributions are welcome.
## License
Slinky is available under the [BSD (3-Clause) License](https://opensource.org/licenses/BSD-3-Clause).