wikicfp-scraper-0.1.0.2: Scrape WikiCFP web site

MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone

Web.WikiCFP.Scraper

Contents

Description

Synopsis:

 import qualified Network.HTTP as H
 import Web.WikiCFP.Scraper (scrapeSearchEvents)
 
 main :: IO ()
 main =  do
   res <- H.getResponseBody =<< H.simpleHTTP (H.getRequest "http://wikicfp.com/cfp/servlet/tool.search?q=japan&year=t")
   print $ scrapeSearchEvents res

This module scrapes WikiCFP pages (http://wikicfp.com/) for call-for-papers. It helps you stay up to date with deadlines of academic paper submissions.

Synopsis

Scraper routines

scrapeConfEvents :: HTML input => input -> Either ErrorMsg [Event]Source

Scrape a page of a conference, for example, http://wikicfp.com/cfp/program?id=2671

scrapeSearchEvents :: HTML input => input -> Either ErrorMsg [Event]Source

Scrape a page of search results, for example, http://wikicfp.com/cfp/servlet/tool.search?q=cloud&year=t

Types

class HTML a whereSource

Types of input HTML data to scrape.

Instances

HTML String 
HTML ByteString 
HTML ByteString

It just assumes UTF-8 encoding.

HTML Text 
HTML Text 

data When Source

Period of dates (inclusive).

Constructors

When 

Fields

whenFrom :: !Day
 
whenTo :: !Day
 

Instances

data Event Source

A conference event posted to WikiCFP site. It corresponds to a row in the table you see conference pages etc, for example, http://wikicfp.com/cfp/program?id=1172

Constructors

Event 

Fields

eventShortName :: !Text
 
eventURL :: !Text

URL to the WikiCFP page of this event.

eventLongName :: !Text
 
eventWhen :: !(Maybe When)
 
eventWhere :: !(Maybe Text)
 
eventDeadlines :: ![Day]

deadlines are in an ascending order, i.e., the earliest deadline is the head.

Instances