A simple scraper for the XAnimePorn.com website.
Project description
A simple Python approach to XAnimePorn.com
Get Started
It’s really easy to get started with XAnimePorn. No tokens, no API credentials, nothing will stay between you and your
work. The only thing you will need is importing the package into your project using import XAnimePorn
.
Remember to also import the requirements in your project:
After installing all the requirements your project is ready to use XAnimePorn.
Just use pip3 install XAnimePorn
to install the package.
There aren’t many things to explain as this is a really simple package but documentation can be found inside the code.
Here an example of what can this package do:
import XAnimePorn
search = XAnimePorn.search("love", 1) # Executes a research using the given keyword and taking only one element
link = search[0] # Takes the first element from the research
video = XAnimePorn.Video(link) # Creates a Video object from which it is possible to get information
print(video.title) # Prints the title of the video.
print(video.url) # Prints the link to the video.
XAnimePorn.Video(link).download() # Downloads the video.
search = XAnimePorn.search("love", 10) # Executes a research using the given keyword
for link in search: # For every video found
video = XAnimePorn.Video(link) # Creates a Video object
print(video.title + " -> " + video.url) # Prints the video title and link
Made with by Stefan Cucoranu aka elpideus (elpideus@gmail.com)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.