thulioph / whosampled-scraper

Fetch sample information from WhoSampled webpage.
https://whosampled-scraper.herokuapp.com/
24 stars 4 forks source link

feat(nestjs): added page number option #13

Closed spencercap closed 3 years ago

spencercap commented 3 years ago

added a feature for specifying the page number you want from the whosampled search.

usage, just add the page number you want to end of the route: http://localhost:3000/artist/2pac/2


FYI - this builds off of the header User-Agent fix in https://github.com/thulioph/whosampled-scraper/pull/12

spencercap commented 3 years ago

this PR also adds an x-ray filter that trims whitespace (notably \n and \t) from the artist field during the scrape

which changes

"artist": "\n\t\t\t\t\t\t\t2Pac feat. Dr. Dre and Roger Troutman\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t",

to

"artist": "2Pac feat. Dr. Dre and Roger Troutman",
spencercap commented 3 years ago

@thulioph 🛎 bump

thulioph commented 3 years ago

Thank you @spencercap. Can you update your PR, please? After the merge of the other PR there are small conflicts to fix.

spencercap commented 3 years ago

there ya go @thulioph 👍

thulioph commented 3 years ago

Thank you @spencercap 🤖