fix: respect scraper pacing details

This commit is contained in:
2026-04-27 00:13:42 -04:00
parent 0f77155c8d
commit b73faa35da
4 changed files with 95 additions and 13 deletions

View File

@@ -84,7 +84,8 @@ function parseEbayPrice(
currency = "CAD";
} else if (
cleaned.toUpperCase().includes("USD") ||
cleaned.toUpperCase().includes("US $")
cleaned.toUpperCase().includes("US $") ||
cleaned.toUpperCase().includes("US$")
) {
currency = "USD";
} else if (cleaned.includes("£")) {

View File

@@ -462,18 +462,16 @@ async function fetchSellerDetails(
accountType?: string;
}> {
try {
const [reviewData, profileData] = await Promise.all([
fetchGraphQLData(
GRAPHQL_QUERIES.getReviewSummary,
{ userId: posterId },
BASE_URL,
),
fetchGraphQLData(
GRAPHQL_QUERIES.getProfileMetrics,
{ profileId: posterId },
BASE_URL,
),
]);
const reviewData = await fetchGraphQLData(
GRAPHQL_QUERIES.getReviewSummary,
{ userId: posterId },
BASE_URL,
);
const profileData = await fetchGraphQLData(
GRAPHQL_QUERIES.getProfileMetrics,
{ profileId: posterId },
BASE_URL,
);
const reviewResponse = reviewData as GraphQLReviewResponse;
const profileResponse = profileData as GraphQLProfileResponse;