Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 963 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 963 Bytes

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