Submit templates for repl.it/templates here.

← Back to all posts
Webscraper Template
HENRYMARTIN4

Webscraper Template

A simple webscraper using the newspaper3k Python module.

What it does

What this does is it first gets user input for the URL.

Then, it goes on and prints out all the article titles.

Then, we define a function to allow us to get our user input for our article number.

Here, we now get the article number the user wants...

Then we download the article, parse it, and print out the contents.
Please enjoy!

Sorry about the long install times.

NOTE: This is very glitchy.

Voters
KsenijaBickova
RoyalDiadem
ccccssx
cmglj
Leroy01010
HENRYMARTIN4
Comments
hotnewtop
fullstack11235

What are some good sites to use? The ones I've tried comeback with an error.

ccccssx

Thx

Leroy01010

nice!

HENRYMARTIN4

@Leroy01010 thx i dont have many upvoters here.

Leroy01010