Added normalizeUrl

This commit is contained in:
cyian-1756 2018-03-05 13:20:12 -05:00
parent e6c43bb482
commit 48ffcf68d3

View File

@ -52,6 +52,12 @@ public class InstagramRipper extends AbstractHTMLRipper {
return san_url;
}
@Override
public String normalizeUrl(String url) {
// Remove the date sig from the url
return url.replaceAll("/[A-Z0-9]{8}/", "/");
}
private List<String> getPostsFromSinglePage(Document Doc) {
List<String> imageURLs = new ArrayList<>();
JSONArray datas;