Giter Site home page Giter Site logo

dramatycznie / ao3_scraper Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 172 KB

Web scraper that downloads bookmarks and extracts bookmark metadata from Archive of Our Own and saves it to a CSV file.

License: MIT License

Python 100.00%
ao3 archiveofourown python webscraping

ao3_scraper's Introduction

AO3_Scraper

A web scraper that extracts bookmark metadata from Archive of Our Own and saves it to a CSV file. Has an option to download the bookmarks and neatly organize them into folders based on fandoms.

Works on public and private bookmarks if you log into your AO3 account.

Table of Contents

Features

Scrapes or downloads bookmarks from Archive of Our Own. Allows user to log into their account to access private bookmarks and works that are only available to registered users.

Scraping

  • Extracts bookmark metadata such as URL, title, authors, fandoms, warnings, ratings, categories, characters, relationships, tags, wordcounts, date bookmarked, date updated.
  • Writes extracted data to a CSV file.

Downloading

  • Downloads bookmarks to different folders based on fandoms, and names the files based on the title and authors.
  • Supports downloading bookmarked series.
  • Allows user to choose format when downloading bookmarks (HTML, MOBI, EPUB, PDF, AZW3).

Updating

  • Checks bookmarks for updates and downloads them accordingly (HTML, EPUB, PDF).
  • Works only if bookmarks are in the correct folder and named correctly.

Dependencies

  • Python 3
  • PIP
  • requests
  • BeautifulSoup
  • tqdm
  • colorama
  • ebooklib
  • pypdf2

How to use

Run the script yourself or use the release.

Running the script

  • Download or clone the repository.
  • Install the required dependencies by running pip install -r requirements.txt in the correct directory where the requirements.txt file is located.
  • Run the script by running python main.py in command prompt or terminal. Make sure you're in the correct directory.
  • Scrape or download the bookmarks.

Use the release

Instead of downloading the script, you can download the latest release and run it directly.

  • Download the release.
  • Unpack it.
  • Run AO3_Scraper.exe.
  • Scrape or download the bookmarks.

Contact

If you have any questions or feedback about this project, please feel free to reach out to me.

Bug reports and feature requests

For bug reports and feature requests, please open an issue on my GitHub repository: https://github.com/Dramatycznie/AO3_Scraper/issues

ao3_scraper's People

Contributors

dramatycznie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

epicstuff

ao3_scraper's Issues

Executable flagged as false positive

I was trying to use AO3_Scraper but while attempting to extract the files Windows Security alerted me about a virus -
image

Are you aware of this problem?

crashes when logging in

Exception has occurred: TypeError
bad operand type for unary +: 'str'
File "C:\Users\Derek\OneDrive\Documents\Programs\AO3_Scraper\AO3_Scraper.py", line 101, in
print(+ Fore.GREEN + "Login failed" + Fore.RESET)
TypeError: bad operand type for unary +: 'str'

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.