mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
fix rotten tomato scraper
This commit is contained in:
parent
ebdb931d59
commit
4d5a5151f1
1 changed files with 4 additions and 4 deletions
|
|
@ -132,11 +132,11 @@ export async function scrapeRottenTomatoes(
|
|||
const movies = movieRows.map((row) => {
|
||||
const nameMatch = row.match(/data-qa="info-name"[^>]*>([^<]+)</);
|
||||
const urlMatch = row.match(/href="([^"]+)"/);
|
||||
const scoreMatch = row.match(/tomatometerscore="([^"]+)"/);
|
||||
const sentimentMatch = row.match(/tomatometersentiment="([^"]+)"/);
|
||||
const yearMatch = row.match(/releaseyear="([^"]+)"/);
|
||||
const scoreMatch = row.match(/tomatometer-score="([^"]+)"/);
|
||||
const sentimentMatch = row.match(/tomatometer-sentiment="([^"]+)"/);
|
||||
const yearMatch = row.match(/release-year="([^"]+)"/);
|
||||
const tomatometeriscertified = row.match(
|
||||
/tomatometeriscertified="([^"]+)"/,
|
||||
/tomatometer-is-certified="([^"]+)"/,
|
||||
);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue