Skip to main content

A small package for getting Webtoon comics for Python3.

Project description

<center>
<h1>Webtoons site scraper, for Python 3</h1>
</center>
Note: this module was based off of [this](https://github.com/Galactus03/webtoons)
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.

----

<h3>INSTALLATION DIRECTIONS (pip)</h3>
// I CAN'T GET TWINE TO UPLOAD MY MODULE TO PYPI YET SO PIP3 INSTALL WON'T WORK - USE ALTERNATE INSTALLATION DIRECTIONS

To install, simply run

pip3 install webtoons

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


<h3>ALTERNATE INSTALLATION DIRECTIONS (cloning)</h3>
Requests, BeautifulSoup4 are required dependencies. Install them with:

sudo pip3 install requests, beautifulsoup4

You can then clone the repository and install it:

git clone https://github.com/joshdabosh/webtoons.git
cd webtoons
sudo python3 setup.py install

----

<h3>USE</h3>
To use, simply start an instance of webtoons and run a few functions!

import webtoons
wt = webtoons.Webtoons()
print(wt.top10_of_day())
# returns the top 10 comics of the day


----

Comments or suggestions are welcome!


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webtoons-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webtoons-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file webtoons-0.1.1.tar.gz.

File metadata

  • Download URL: webtoons-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/3.3 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.3

File hashes

Hashes for webtoons-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2685e344d628618a90ee3129118023cb8c0f652c3cbb244c164138562129b504
MD5 fae2d17cd416950d983d8b2f101e2cc1
BLAKE2b-256 cfd04968b0faf8428a8b8a747cea6bb15855111aecd555e2078182dfcc2e38cf

See more details on using hashes here.

File details

Details for the file webtoons-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: webtoons-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/3.3 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.3

File hashes

Hashes for webtoons-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37b3bd4edf5e08778a76180e97412bb5aa27031e718f54f970f3bb98db2926dc
MD5 f2dd59f477770105416021e4dc937941
BLAKE2b-256 d2be17af749f13c2236041578feff54b6d2788b85a7de829bda691fa4d5ad26b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page