Merge branch 'main' of https://git.hudsonriggs.systems/LambdaBankingConglomerate/rmtPocketWatcher
This commit is contained in:
5
backend/package-lock.json
generated
5
backend/package-lock.json
generated
@@ -61,6 +61,7 @@
|
|||||||
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.27.1",
|
"@babel/code-frame": "^7.27.1",
|
||||||
"@babel/generator": "^7.28.5",
|
"@babel/generator": "^7.28.5",
|
||||||
@@ -1983,6 +1984,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"baseline-browser-mapping": "^2.9.0",
|
"baseline-browser-mapping": "^2.9.0",
|
||||||
"caniuse-lite": "^1.0.30001759",
|
"caniuse-lite": "^1.0.30001759",
|
||||||
@@ -3068,6 +3070,7 @@
|
|||||||
"integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
|
"integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/core": "^29.7.0",
|
"@jest/core": "^29.7.0",
|
||||||
"@jest/types": "^29.6.3",
|
"@jest/types": "^29.6.3",
|
||||||
@@ -4290,6 +4293,7 @@
|
|||||||
"integrity": "sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==",
|
"integrity": "sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/engines": "5.22.0"
|
"@prisma/engines": "5.22.0"
|
||||||
},
|
},
|
||||||
@@ -4955,6 +4959,7 @@
|
|||||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export class PlayerAuctionsScraper extends BaseScraper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const listings: VendorListing[] = [];
|
const listings: VendorListing[] = [];
|
||||||
const targetQuantityM = 100000; // 10000 M = 10 billion AUEC (field is already in millions)
|
const targetQuantityM = 1000000; // 1000000 M = 1 trillion AUEC (field is already in millions)
|
||||||
|
|
||||||
// Step 2-5: Process each offer card
|
// Step 2-5: Process each offer card
|
||||||
for (let i = 0; i < Math.min(offerCards.length, 20); i++) {
|
for (let i = 0; i < Math.min(offerCards.length, 20); i++) {
|
||||||
@@ -48,7 +48,7 @@ export class PlayerAuctionsScraper extends BaseScraper {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set quantity to 10000 (which means 10000 M = 10 billion AUEC)
|
// Set quantity to 1000000 (which means 1000000 M = 1 trillion AUEC)
|
||||||
await qtyInput.scrollIntoViewIfNeeded();
|
await qtyInput.scrollIntoViewIfNeeded();
|
||||||
await qtyInput.click({ force: true });
|
await qtyInput.click({ force: true });
|
||||||
await qtyInput.fill('');
|
await qtyInput.fill('');
|
||||||
@@ -152,7 +152,7 @@ export class PlayerAuctionsScraper extends BaseScraper {
|
|||||||
}> = [];
|
}> = [];
|
||||||
|
|
||||||
const bodyText = document.body.innerText;
|
const bodyText = document.body.innerText;
|
||||||
const lines = bodyText.split('\n').map(l => l.trim()).filter(l => l.length > 0);
|
const lines = bodyText.split('\n').map((l: string) => l.trim()).filter((l: string) => l.length > 0);
|
||||||
|
|
||||||
const seenPrices = new Set<number>();
|
const seenPrices = new Set<number>();
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ export class PlayerAuctionsScraper extends BaseScraper {
|
|||||||
if (seenPrices.has(pricePerMillion)) continue;
|
if (seenPrices.has(pricePerMillion)) continue;
|
||||||
seenPrices.add(pricePerMillion);
|
seenPrices.add(pricePerMillion);
|
||||||
|
|
||||||
const targetQuantityM = 100000;
|
const targetQuantityM = 1000000;
|
||||||
const amountAUEC = targetQuantityM * 1_000_000;
|
const amountAUEC = targetQuantityM * 1_000_000;
|
||||||
const priceUSD = pricePerMillion * targetQuantityM;
|
const priceUSD = pricePerMillion * targetQuantityM;
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ export class PlayerAuctionsScraper extends BaseScraper {
|
|||||||
const scrapedAt = new Date();
|
const scrapedAt = new Date();
|
||||||
const url = this.getTargetUrl();
|
const url = this.getTargetUrl();
|
||||||
|
|
||||||
return listings.map(listing => ({
|
return listings.map((listing: any) => ({
|
||||||
vendor: 'playerauctions' as const,
|
vendor: 'playerauctions' as const,
|
||||||
amountAUEC: listing.amountAUEC,
|
amountAUEC: listing.amountAUEC,
|
||||||
priceUSD: listing.priceUSD,
|
priceUSD: listing.priceUSD,
|
||||||
|
|||||||
Reference in New Issue
Block a user