Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinterest URL Normalizer for Java

Parse, classify, and normalize Pinterest URLs without network requests. The library uses an exact Pinterest host allowlist and rejects lookalike domains, credentials, non-HTTPS URLs, encoded paths, and non-standard ports.

<dependency>
  <groupId>io.github.jiankn</groupId>
  <artifactId>pinterest-url-normalizer</artifactId>
  <version>0.1.0</version>
</dependency>
import io.github.jiankn.pinterest.PinterestUrlNormalizer;

String canonical = PinterestUrlNormalizer.normalize(
    "https://www.pinterest.co.uk/pin/example--123456789/?utm_source=test");
// https://www.pinterest.com/pin/123456789/

Supported URL classes are Pin, pin.it short link, profile, board, and Ideas. This package does not download media or make network requests. For an online Pinterest downloader, use SavePinner.

MIT licensed.

About

Parse, classify, and normalize Pinterest URLs in Java without network requests.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages