Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Merge branch 'Omri'
Browse files Browse the repository at this point in the history
  • Loading branch information
AppleGamer22 committed Apr 12, 2020
2 parents ef3c71d + a0d409a commit 2d4aae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@applegamer22/scr-cli",
"description": "Social media web scraper for post file downloads.",
"version": "1.0.0-alpha.27.2",
"version": "1.0.0-alpha.27.3",
"author": "Omri Bornstein",
"publisher": "AppleGamer22",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/vsco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export async function detectFile(browser: Browser, page: Page, user: string, pos
alert(`Failed to find ${user}'s post ${post}`, "danger");
await browser.close();
}
await page.waitForSelector("a.DetailViewUserInfo-username", {visible: true});
await page.waitForSelector("a.css-9zfgas-UsernameLink", {visible: true});
const username = await page.evaluate(() => {
const a = document.querySelector("a.DetailViewUserInfo-username") as HTMLAnchorElement;
const a = document.querySelector("a.css-9zfgas-UsernameLink") as HTMLAnchorElement;
return a.innerText;
});
const imageURLs = await page.$$eval(`meta[property="og:image"]`, metas => {
Expand Down

0 comments on commit 2d4aae2

Please sign in to comment.