Skip to content

Add GIF page parser#169

Open
iced-queen wants to merge 9 commits intopionxzh:masterfrom
iced-queen:master
Open

Add GIF page parser#169
iced-queen wants to merge 9 commits intopionxzh:masterfrom
iced-queen:master

Conversation

@iced-queen
Copy link
Contributor

I attempted to make the page parser for GIF pages. I had help from AI, so it might not be perfect. Although, I have tested it, and it returned all the correct information after some tweaks.

I am not good at working with forks, so I have no idea why the entire package-lock.json file also was included in a commit, whoops. I guess just simply remove that 😅

The page parser should return everything needed from the GIF page. Here is an example:

{
 id: '53842061',
 url: 'https://www.pornhub.com/gif/53842061',
 title: 'Doggystyle Orgasm',
 views: 27147,
 vote: { up: 161, down: 20, total: 181, rating: 0.89 },
 premium: false,
 preview: 'https://ei.phncdn.com/pics/gifs/053/842/061/(m=bKOCwLV)(mh=J-Ye50HhabPOkf-F)53842061a.jpg',
 gif: 'https://kl.phncdn.com/gif/53842061.gif?hdnea=st=1770845106~exp=1770852306~hdl=-1~hmac=64d96f6b6e3faf219b9b005d3b696ac768841859',
 mp4: 'https://kl.phncdn.com/pics/gifs/053/842/061/53842061a.mp4?hdnea=st=1770845106~exp=1770852306~hdl=-1~hmac=06c470519bcf873a11452b000637224e6f37af6e',
 webm: 'https://kl.phncdn.com/pics/gifs/053/842/061/53842061a.webm?hdnea=st=1770845106~exp=1770852306~hdl=-1~hmac=06c470519bcf873a11452b000637224e6f37af6e',
 provider: { username: 'LaBorrra', url: '/users/laborrra' },
 sourceVideo: {
   title: 'Lustful Fit Girl Seduced Me and Gave Hard Fuck Herself. I Cum Twice in Her Mouth (Rough, Blowjob)',
   url: 'https://www.pornhub.com/view_video.php?viewkey=ph638752184720b',
   timestampSeconds: 570,
   timestampFormatted: '9:30'
 },
 tags: [
   'female orgasm',
   'doggystyle',
   'facial expression',
   'sweetie fox',
   'amateur',
   'pornhub',
   'straight sex',
   'redhead'
 ],
 pornstars: [],
 uploadDate: 2026-01-31T00:00:00.000Z
}

Hope this is helpful and usable :DDD

@iced-queen
Copy link
Contributor Author

@pionxzh I attempted to make one of the features I requested a while back. Would you mind reviewing and pushing it if you think it's good whenever you have the time? 😊

@pionxzh
Copy link
Owner

pionxzh commented Feb 16, 2026

Hi can you fix the lint error and dont commit package-lock.json? we use pnpm in this project. 🙏

@iced-queen
Copy link
Contributor Author

Hi, I actually don't know how to "uncommit" package-lock.json. Like I said, I accidentally committed it, and I am still sort of a noob with GitHub, so I am not sure how to undo that. I will attempt to figure it out, and I'll look into the lint error as well :))

@iced-queen
Copy link
Contributor Author

How is it now? Still have a lint error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants