Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Replace arXiv links (or doi links) by their corresponding bibliography in markdowns / Notion databases. Inspired by Mu Li.
This repo provides a tool to replace arXiv/DOI links saved in
with their corresponding bibliographic information, which intends to create a more convenient experience for users in needs of searching, collecting, and taking notes of literatures. The script uses the Semantic Scholar API to retrieve information such as authors, title, journal, year, and citation count for a given arXiv paper.
Markdown | Notion Database |
---|---|
To install a2b
, make sure you have pip installed and run:
>> pip install a2b
The tool can be run from the command line, e.g. to check the installed version of a2b
,
>> a2b --version
For example:
>> a2b --arxiv https://arXiv.org/abs/1912.08957
## __Optimization for deep learning: theory and algorithms.__ *Ruoyu Sun.* __ArXiv, 2019__ [(Arxiv)](ht
## tps://arXiv.org/abs/1912.08957) [(S2)](https://www.semanticscholar.org/paper/c23173e93f1db79a422e2af
## 881a40afb96b8cb92) (Citations __114__)
Here you can use the link of pdf https://arXiv.org/pdf/1912.08957.pdf
, instead of the link of arXiv page.
>> a2b --doi https://doi.org/10.1007/BF00133570
## __Snakes: Active contour models.__ *M. Kass et al.* __International Journal of Computer Vision, 2004__
## [(Link)](https://doi.org/10.1007/BF00133570) [(S2)](https://www.semanticscholar.org/paper/9394a5d5adcb6
## 26128b6a42c8810b9505a3c6487) (Citations __15860__)
One can simply provide the DOI 10.1007/BF00133570
without adding the hyperlink prefix to generate bibilography from DOI.
>> a2b path/to/markdown.md
Run the following command to replace all arXiv links found in the given directory and its subdirectories.
>> a2b path/to/directory
To replace arXiv links in the markdown files ONLY within the directory (subdirectories excluded), use arguments --no-recursive
or -nr
:
>> a2b -nr path/to/directory
To generate bibliography from links saved in a Notion database, follow the instructions below
Title
and run the following command to activate the conversion>> a2b --notion notion_database_id --key notion_api_key
# or
>> a2b --notion notion_database_url --key notion api_key
You can choose to save your Notion API key as a environment variable NOTION_API_KEY
, and then you can simply run without manually providing the key in command:
>> a2b --notion notion_database_id
# or
>> a2b --notion notion_database_url
FAQs
Replace arxiv links in markdowns by their corresponding bibliography.
We found that a2b demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.