diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-02-24 22:34:01 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-02-24 22:34:01 +0200 |
| commit | 380b2378e821fbe26011a0ae7cb3ebc6dbdcf018 (patch) | |
| tree | 4c515146a0fa8593c33f88dc8195c149b8eba05c /src/instagram_task.ts | |
| parent | e708c90387783c84f1092fb7d11906e127e4c10c (diff) | |
Fix tasks after website changes
Diffstat (limited to 'src/instagram_task.ts')
| -rw-r--r-- | src/instagram_task.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/instagram_task.ts b/src/instagram_task.ts index 5777a56..4b66b1d 100644 --- a/src/instagram_task.ts +++ b/src/instagram_task.ts @@ -29,8 +29,8 @@ export const runDownloadInstagramTask = async (task: InstagramTask) => { }); await page.goto("https://snapinsta.app/"); - await page.type("input#url", task.url); - await page.click("button[type=submit]"); + await page.type("input#sf_url", task.url); + await page.click("button#sf_submit"); try { const consent = await page.waitForSelector("button.fc-cta-consent", { @@ -82,7 +82,7 @@ export const runDownloadInstagramTask = async (task: InstagramTask) => { const downloadButton = await page.waitForSelector( ".download-content a[data-event=click_download_btn]", - { timeout: 10_000 } + { timeout: 10_000 }, ); if (!downloadButton) { throw new Error("Could not find download button"); @@ -98,7 +98,7 @@ export const runDownloadInstagramTask = async (task: InstagramTask) => { // Click outside shadow-dommed ad modal to close it and start the download console.log( - "Clicking outside the possible ad modal to close it and start the download" + "Clicking outside the possible ad modal to close it and start the download", ); await page.mouse.click(10, 10); |
