Coder Social home page Coder Social logo

wos_parser's Introduction

Parser for Web of Science XML dataset

Python XML parser for Web of Science XML file. See example XML file from yadudoc/wos_builder. The implementation is based on yadudoc/wos_builder. I just make is as a function that can be easily integrate with others platform like Spark or multiprocessing.

Example

import wos_parser as wp
records = wp.read_xml('sample.xml')
authors = [wp.extract_authors(record) for record in records] # you can flatten and transform to dataframe

Parser Available

Using read_xml in order to read Web of Science XML file to list of element trees. Each element tree can be parsed to these following function to get dictionary or list of dictionary output.

  • extract_pub_info
  • extract_authors
  • extract_addresses
  • extract_publisher
  • extract_funding
  • extract_conferences
  • extract_references
  • extract_identifiers

Installation

Clone the repository and install using setup.py

$ git clone https://github.com/titipata/wos_parser
$ cd wos_parser
$ python setup.py install

or via pip

$ pip install git+https://github.com/titipata/wos_parser.git

License

MIT License Copyright (c) 2016 Titipat Achakulvisut

wos_parser's People

Contributors

connectedsystems avatar mrp3anut avatar sultanorazbayev avatar titipata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wos_parser's Issues

Large files handling

Hi,

Thank you for this ! But i'm facing an issue with large xml files, how can I modify this package to parse large xml files ?

Thanks again !

Best Regards

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.