Tool for parsing bibtex in ssau's format
Project description
Install
pip install references-parser
Usage
Use help to see CLI parameters
➜ python -m references_parser parse --help
Usage: python -m references_parser parse [OPTIONS] PATH
Options:
-s, --save TEXT Path to file where to save the result of parsing.
-p, --parser TEXT Parser to use. Available parsers: ieee, ssau.
Default: ssau.
-v, --verbose Whether to print output to stdout or not
-b, --beautify INTEGER Number of line wraps between references. Default: 1
--help Show this message and exit.
Usual way of using the script
python -m references_parser parse in.txt
Website references
It's hard to fully parse a website automatically, so some manual interactions are required.
How to add a website reference:
- Add the links directly to the input file.
- Invoke the
prepare-urls
command like this:
python -m references_parser prepare-urls in.txt
- Then, the URL in the file will be replaced with a BibTeX-annotated URL:
@online{Google,
title={Google},
date={18.05.2023},
year={2023},
origin={TODO: Author or place or corp here},
base={TODO: Base resource title here},
url={<https://google.com>}
}
- Here, you can fill in the fields
origin
(mandatory) andbase
with the required information. - Then, you can use parsers as usual, but pay attention that the result contains
[Б.м.]
, which you may want to delete.
Examples
Follow examples
folder to see input and outputs file examples
Contribution
If you want to improve the program - just fork it and make a pool request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for references_parser-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | defbe892ab70b51c25630dc71aaae84fa31ff4aed37382e6606f6a7ac6f8de6c |
|
MD5 | 41b70fb3363e7a025f377a9be6149e61 |
|
BLAKE2b-256 | bf12b14c03d498a6ef014a4a9c1763b435510b1e3eaad10e9dca114c4fa1c423 |