Commit 88829454 authored by nanahira's avatar nanahira

fix tweet load

parent e877a7a4
......@@ -117,9 +117,9 @@ export default class RetweetNotifierPlugin extends SchedulePlugin(
}
const page = await this.ctx.puppeteer.page();
try {
await page.goto(url, { timeout: 300000, waitUntil: 'networkidle2' });
await page.goto(url, { timeout: 300000, waitUntil: 'networkidle0' });
const tweetComponent = await page.$(
'#react-root > div > div > div:nth-child(2) > main > div > div > div > div > div > section > div > div > div:nth-child(1) > div > div > div:nth-child(1)',
'#react-root > div > div > div.css-1dbjc4n.r-18u37iz.r-13qz1uu.r-417010 > main > div > div > div > div.css-1dbjc4n.r-14lw9ot.r-jxzhtn.r-1ljd8xs.r-13l2t4g.r-1phboty.r-16y2uox.r-1jgb5lz.r-11wrixw.r-61z16t.r-1ye8kvj.r-13qz1uu.r-184en5c > div > section',
);
// const tweetComponent = page;
if (!tweetComponent) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment