A Python module to fetch and parse horoscope data from theastrologer.com
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
theastrologer
.gitignore
CHANGES.txt
LICENSE.txt
README.md
requirements.txt
setup.cfg
setup.py

README.md

theastrologer

A Python module to fetch and parse horoscope data from theastrologer.com

Projects built using theastrologer

  • theastrologer-api - REST API to view and send horoscope as SMS using theastrologer lilbrary, Flask framework and Twilio API

Installation

  • You will need Python 3.
  • pip is recommended for installing dependencies.

Installing dependencies

pip install requests lxml six

Installing theastrologer library:

pip install theastrologer

Usage

from theastrologer import Horoscope

horoscope = Horoscope("aquarius")
today = horoscope.today()

print(today['sunsign'])
print(today['horoscope'])

Features

Currently implemented

  • Today's horoscope
  • Yesterday's horoscope
  • Tomorrow's horoscope
  • List of all horoscope