Browse Source

小问题

main
YuJian920 3 years ago
parent
commit
5ce666dfdb
  1. 2
      yitudao.js

2
yitudao.js

@ -43,7 +43,7 @@ let MAX_PAGENUMBER = 573; // 爬取最大页码
const spiderQueue = async (soureUrl) => { const spiderQueue = async (soureUrl) => {
const url = `${soureUrl}${CURRY_PAGENUMBER}.html`; const url = `${soureUrl}${CURRY_PAGENUMBER}.html`;
request({ url }).then(async (res) => { request({ url }).then(async (res) => {
const $ = cheerio.load(res.data);= const $ = cheerio.load(res.data);
const requestQueue = []; const requestQueue = [];
$("a[title]").each((i, elem) => { $("a[title]").each((i, elem) => {

Loading…
Cancel
Save