Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.
/ webtoons Public archive

Python3 version of webtoons.py file from Galactus03/webtoons, with some more resiliency and functions better as a module

License

Notifications You must be signed in to change notification settings

joshdabosh/webtoons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webtoons site scraper, for Python 3

Note: this module was based off of this repository for Python2. Big thanks to @Galactus03!

I added more resiliency to the functions, transferred all code to Python3 syntax, fixed quite some bugs, and made it return results.


This module has these functions:

popularity_age(age, sex, toShow) -> takes in parameters age, sex, and toShow. If not given, random.choice chooses age and sex, and toShow defaults to integer 5. Returns list of toShow amount of the most popular webtoons based on age and sex.

author_comics(author) -> takes in parameter author. Returns list of all comics that the specified author has created.

new_releases(toShow) -> takes in parameter toShow. Returns list of toShow amount of webtoons that were updated today

top10_of_day() -> takes in no parameters. Returns list of the top 10 most popular comics today.

best_rated(toShow) -> takes in parameter toShow. Returns list of toShow amount of the most popular webtoons.

top_in_genre(g, toShow) -> takes in parameters g and toShow. Returns list of toShow amount of the most popular comics in genre g.


INSTALLATION DIRECTIONS (pip)

To install, simply run
sudo pip3 install webtoons

to install webtoons (this module!), requests, and BeautifulSoup4, which are dependencies.

ALTERNATE INSTALLATION DIRECTIONS (cloning)

Clone the repository and install it:
git clone https://github.com/joshdabosh/webtoons.git
cd webtoons
sudo python3 setup.py install

USE

To use, simply start an instance of webtoons and run a few functions!
import webtoons
wt = webtoons.Webtoons()
print(wt.top10_of_day())
# prints the top 10 comics of the day

Comments or suggestions are welcome!

About

Python3 version of webtoons.py file from Galactus03/webtoons, with some more resiliency and functions better as a module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages