michalczaplinski / pitchfork

:notes: Unofficial python API for pitchfork.com reviews.
MIT License
73 stars 18 forks source link

Search no longer works after site redesign #18

Open fortes opened 2 years ago

fortes commented 2 years ago

Looks like Pitchfork's redesign breaks how search was working here (via reading a JSON object that no longer exists). Poking around at the source, there's no straightforward replacement.

https://pitchfork.com/api/v2/search/_ac/?query= endpoint seems promising, but surprisingly fails for all sorts of values such as mogwai atomic even though that review exists and is returned when just searching for mogwai

benthev commented 1 year ago

As of now the search works for me as far as retrieving the album and soup, but it fails to parse plenty of the fields. i have a quick fix that parses the abstract and editorial but doesn't have the other fields working yet. i'll create a pull request for this while i tinker with some of the other fields