GithubHelp home page GithubHelp logo

wpepub's Introduction

This is a simple set of scripts I put together to generate an ePub edition from a wordpress blog, specifically http://parahumans.wordpress.com/. To run it, just do rake in the root directory, and it will assemble the final book as build/out.epub.

Requirements:

wpepub's People

Contributors

mfeyg avatar rdeits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mfeyg handyman5

wpepub's Issues

Index out of bounds

I did a quick pull and installed dependencies. All seem to be working an import correctly when I open them in a python shell, yet when I do a rake, here's the output:

~/WPepub
$ rake
python scrape.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178 100 178 0 0 1058 0 --:--:-- --:--:-- --:--:-- 1186
Traceback (most recent call last):
File "scrape.py", line 29, in
WP_scrape()
File "scrape.py", line 13, in WP_scrape
categories = soup.find_all(attrs={"class":"widget_categories"})[0]
IndexError: list index out of range
rake aborted!

Any thoughts? I don't know enough python to have a crack at it.

Warnings while running script that make it into finished book

When running the script, I get the following message (multiple times):

:328: (WARNING/2) Inline emphasis start-string without end-string.
and
:490: (WARNING/2) Inline strong start-string without end-string.

This makes it info the finished book as well. Any idea what could be causing this?

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.