Coder Social home page Coder Social logo

stash_theporndb_scraper's Introduction

This is a Python script intended to run from a command line to scrape information for Stash scenes from ThePornDB (metadataapi.net). Requires Python 3. Developed for the "development" version (not the "latest"/stable branch) of Stash, but may also work with "latest."

The script supports setting titles, performers, tags, studios, details, and date. All fields are optional and can be disabled via config options.

Current title, studio, details, and date are overwritten with new data. Current performers and tags are maintained with new results added.

If a new performer/studio/tag is found that's not currently in Stash, the script can optionally add the performer/studio/tag using data from ThePornDB. It can also optionally (via config options) scrape FreeOnes for performer data, and try to pull an image from Babepedia.

Usage

Installation

  • Download the script and install the requirements (pip install -r requirements.txt).
  • Rename SAMPLE_configuration.py to configuration.py.
  • Modify the configuration.py to include the URL of your Stash endpoint. Be sure to specify http or https. Also include your username and password, if using. Set any configuration parameters you'd like, which are explained in the script.

Using the script

Run the script by entering 'python scrapeScenes.py' into your terminal. If run without parameters, the script scrapes all Stash scenes using the options from configuration.py. Add the -h flag to see other supported command line options.

Successfully scraped scenes are tagged with a custom tag, and excluded from future scans.

Where ThePornDB returns multiple results for a scene, the script supports automatic disambiguation, manual disambiguation, or skipping the scene. Scenes that are skipped due to ambiguous results can be tagged. An additional execution of the script can then be run only for previously skipped scenes with the ambiguous results tag.

stash_theporndb_scraper's People

Contributors

bnkai avatar chalupabatman69 avatar dependabot-preview[bot] avatar dependabot[bot] avatar digeratum avatar dirtyracer1337 avatar jeremymeyers avatar peolic avatar pierre-delecto avatar rg9400 avatar vontittyslappen avatar xiosensei avatar

Stargazers

 avatar

Forkers

jasenzc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.