JustalK / PORNHUB-API

A powerful and complete scrapper for the very famous pornhub.com. This javascript module for node give you the possibility, through an API with many options, to scrap any information out of a page or the search page.
MIT License
130 stars 29 forks source link

[BUG] API doesnt return right video information #54

Open DNAScanner opened 1 year ago

DNAScanner commented 1 year ago

Describe the bug I set "https://www.pornhub.com/view_video.php?viewkey=ph6069d3ff13070" as the URL, but I somehow get the information to another video. Even if I try that some URL in my browser, I get the right video, but just not with this package Returnment:

{
    "title": "Tons of Hard Cobs getting Grabbed",
    "views": "182,120",
    "up_votes": 937,
    "down_votes": 104,
    "percent": 90,
    "author": "No Data",
    "categories": ["HD Porn", "SFW", "Suggest"],
    "tags": ["cornhub", "corn", "hardcorn", "Suggest"],
    "production": "professional",
    "description": "Watch Tons of hard cobs getting grabbed on Pornhub.com, the best hardcore porn site. Pornhub is home to the widest selection of free SFW sex videos full of the hottest pornstars. If you're craving cornhub XXX movies you'll find them here.",
    "duration": 12,
    "upload_date": "2016-03-21T18:42:24.000Z",
    "pornstars": "No Data",
    "thumbnail_url": "https://ei.phncdn.com/videos/201603/21/71659671/original/(m=eaAaGwObaaaa)(mh=QN7G_OfyyyoCYqcl)8.jpg",
    "number_of_comment": 37
}

To Reproduce I just executed this:

await pornhub.page(`https://www.pornhub.com/view_video.php?viewkey=ph6069d3ff13070`, ["title", "description", "views", "up_votes", "down_votes", "percent", "author", "pornstars", "categories", "tags", "production", "duration", "number_of_comment", "thumbnail_url", "upload_date", "download_urls"]);