/ffscrape

Script to get fanfic URLs from fanfiction.net

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

ffscrape

Installation

For simplicity sake, I'm going to only support Debian based distros.

Git clone this repo

$ apt install git -y

$ cd ~

$ git clone https://github.com/Oddly/ffscrape.git

Code will now be inside a newly created ffscrape directory.

Create and initialize a virtual environment

A virtual environment is a means to isolate the packages you need for this project and thus not installing them in your OS Python installation.

$ python3 -m venv ~/virtualenv

Then, to go "into" the environment, execute:

$ source ~/virtualenv/bin/activate

You are now in a isolated environment, wherein modules you install with pip for Python are kept. When you leave this environment ($ exit), these modules won't be available to you. After activating, you'll be able to access them again.

Install the script requirements

Then, install the requirements for the script to work. Replace the directory with the place you did your git clone.

$ cd ~/ffscrape

$ pip install -r ./requirements.txt

Usage

To use this script, run the script itself. It will ask you some information to get started.

$ ./fanfiction