Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | None |
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.
- scrapeConfEvents :: HTML input => input -> Either ErrorMsg [Event]
- scrapeSearchEvents :: HTML input => input -> Either ErrorMsg [Event]
- type ErrorMsg = String
- class HTML a where
- decodeToText :: a -> Either ErrorMsg Text
- data When = When {}
- data Event = Event {
- eventShortName :: !Text
- eventURL :: !Text
- eventLongName :: !Text
- eventWhen :: !(Maybe When)
- eventWhere :: !(Maybe Text)
- eventDeadlines :: ![Day]
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
Types of input HTML data to scrape.
decodeToText :: a -> Either ErrorMsg TextSource
HTML String | |
HTML ByteString | |
HTML ByteString | It just assumes UTF-8 encoding. |
HTML Text | |
HTML Text |
Period of dates (inclusive).
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
Event | |
|