Given a url returns a bibtex, uses publication if available
Project description
# URL to BibTeX Converter (url2bib)
url2bib is a commandline tool for converting URLs of papers into into BibTeX citations. It tries to use the publication information rather than the arXiv url.
## Example Here’s an example of how to use the script:
`bash python url2bib.py https://arxiv.org/abs/2006.11477 `
## Prerequisites Before using this script, make sure you have the following prerequisites installed:
Python 3.x
Required Python packages, which can be installed via pip: - bibtexparser
## Usage To use the URL to BibTeX Converter (url2bib), follow these steps:
Clone this repository to your local machine or download the script.
Open your terminal/command prompt and navigate to the directory containing the script.
- Run the script with the following command:
`bash python url2bib.py [URL] ` Replace [URL] with the URL of the webpage you want to extract BibTeX citations from.
The script will retrieve BibTeX entries corresponding to the DOIs found in the webpage and print the resulting BibTeX citation to the console.
## Features - Extracts DOIs from URLs and retrieves BibTeX citations for those DOIs. - Searches for publications of the paper. - Generates a BibTeX entry with a unified ID in the format {firstAuthorSurname}_{year}_{titleFirstWord}.
## Contributing Contributions to this project are welcome. If you have any suggestions or want to report issues, please open an issue or submit a pull request.
## License This project is under the [GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0) license.
## Acknowledgments This script uses the bibtexparser library for parsing and generating BibTeX entries. It also relies on external data sources such as doi.org and dblp.org to fetch BibTeX entries.
## Disclaimer This script is provided as-is, and the accuracy of the generated BibTeX entries depends on the availability and quality of external data sources. Always double-check and edit citations as needed for your research papers and publications.
Happy citing with url2bib!
Project details
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
File details
Details for the file url2bib-0.1.7.tar.gz
.
File metadata
- Download URL: url2bib-0.1.7.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16c4b10ce51394b7e4b00e0fba85bf711c806ee0cfdcce350df848a5ff526689 |
|
MD5 | 37c2cd5f3dbfb2311ec7e04fd92f65f3 |
|
BLAKE2b-256 | f9a6560bba2fbd154951f1a37290d8abf0ff23be1133d821c8d9f623c7a41f76 |
Provenance
File details
Details for the file url2bib-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: url2bib-0.1.7-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d10908340bd8bd405912d16e7bcb51f753dbb0c0c7297f557e7fa1140719c6ec |
|
MD5 | eda1a7c44a6995316c9d03eb55caf739 |
|
BLAKE2b-256 | 2345eebd940e57b4d550d6ace88e9c5fa91c81ed84ad7a4ad2d9f643df0496d4 |