mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-13 19:11:00 +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 movies = movieRows.map((row) => {
|
||||||
const nameMatch = row.match(/data-qa="info-name"[^>]*>([^<]+)</);
|
const nameMatch = row.match(/data-qa="info-name"[^>]*>([^<]+)</);
|
||||||
const urlMatch = row.match(/href="([^"]+)"/);
|
const urlMatch = row.match(/href="([^"]+)"/);
|
||||||
const scoreMatch = row.match(/tomatometerscore="([^"]+)"/);
|
const scoreMatch = row.match(/tomatometer-score="([^"]+)"/);
|
||||||
const sentimentMatch = row.match(/tomatometersentiment="([^"]+)"/);
|
const sentimentMatch = row.match(/tomatometer-sentiment="([^"]+)"/);
|
||||||
const yearMatch = row.match(/releaseyear="([^"]+)"/);
|
const yearMatch = row.match(/release-year="([^"]+)"/);
|
||||||
const tomatometeriscertified = row.match(
|
const tomatometeriscertified = row.match(
|
||||||
/tomatometeriscertified="([^"]+)"/,
|
/tomatometer-is-certified="([^"]+)"/,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue