Skip to content

Commit 8171856

Browse files
author
code-reaper08
committed
fetchig works, check function must be done
1 parent 8ee568c commit 8171856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrape.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const cheerio = require('cheerio');
44
request('https://github.com/code-reaper08/markdownpedia/blob/main/README.md', (error,response,html) =>{
55
if(!error && response.statusCode == 200) {
66
const $ = cheerio.load(html);
7-
const linkObjects = $('#readme > article').children('p' , 'h' , 'li').find('a');
7+
const linkObjects = $('#readme > article').children().find('a');
88
const links = [];
99
linkObjects.each((index, element) => {
1010
links.push({
@@ -22,7 +22,7 @@ request('https://github.com/code-reaper08/markdownpedia/blob/main/README.md', (e
2222

2323

2424

25-
//comments must be removed
25+
2626

2727

2828

0 commit comments

Comments
 (0)