Giter Club home page Giter Club logo

get_conf_papers's Introduction

get_conf_papers

WIP!!! DO NOT USE

get_conf_papers is a very immature library that provides the boilerplate for scraping conference paper lists.

Install

Python >= 3.7 is required, for dataclasses and asyncio.run().

Packages aiohttp and beautifulsoup4 are required for async web requests and html handling.

conda install aiohttp beautifulsoup4

Package lxml is recommanded for faster html parsing.

conda install lxml

And then just put/copy/download get_conf_papers.py onto your import path

Usage

See example.py for an example.

First, subclass the GetConfPapers class

from get_conf_papers import GetConfPapers, Paper

class GetCvprPapers(GetConfPapers):

And then implement the handle_paper_list method

    def handle_paper_list(self, soup) -> List[Paper]:
        ...

Optionally, implement the handle_paper_detail method, if papers in the paper list links to a detail page

Optionally, implement the filter_papers method

Finally, call your class in the following way:

with GetCvprPapers(
    name="cvpr2020",
    topic="object_detection",
    sources=[
        "https://openaccess.thecvf.com/CVPR2020.py?day=2020-06-16",
        "https://openaccess.thecvf.com/CVPR2020.py?day=2020-06-17",
        "https://openaccess.thecvf.com/CVPR2020.py?day=2020-06-18",
    ],
    # save_htmls=True,
    # clear_cache=True,
) as get_cvpr_papers:
    get_cvpr_papers()

get_conf_papers's People

Contributors

patrick22414 avatar

Stargazers

tianchen avatar Niansong Zhang avatar

Watchers

James Cloos avatar  avatar

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.