Metadata-Version: 2.4
Name: CloudsOfArx
Version: 0.5.0
Summary: Web Scraper package for generating wordclouds from research paper abstracts.
Author-email: James Sunseri <js7501@princeton.edu>
License: MIT
Project-URL: Homepage, https://github.com/James11222/CloudsOfArx/
Project-URL: Bug Reports, https://github.com/James11222/CloudsOfArx/issues
Project-URL: Source, https://github.com/James11222/CloudsOfArx/
Keywords: ArXiv,ADS,wordcloud
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ads
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: Pillow
Requires-Dist: scipy
Requires-Dist: wordcloud
Dynamic: license-file

# CloudsOfArx 
[![codecov](https://codecov.io/gh/James11222/CloudsOfArx/branch/main/graph/badge.svg?token=LBJRT9BTNA)](https://codecov.io/gh/James11222/CloudsOfArx)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/James11222/CloudsOfArx/run_tests.yml)
![PyPI](https://img.shields.io/pypi/v/CloudsOfArx)

An automated webscraper package to make wordcloud images out of the abstracts of your first-author papers. 

## Installation

To use this package just install via pip

`pip install CloudsOfArx`

## Usage

This package is simple and straightforward. To use it simply run the following lines in your python environment of choice after installation via pip.

``` python
import CloudsOfArx

CloudsOfArx.create_wordcloud(ADS_TOKEN, author, image_file, orcid=None, save_name=None)
```

The `ADS_TOKEN` is required to use the NASA ADS API. Make an account on NASA ADS to acquire an API token key, then copy and paste the key as a string for that argument. The `author` argument is the name of the first-author in a "LastName, FirstName" formatted string. `image_file` is a string pointing to the desired image for masking the wordcloud into. I also include the optional `orcid` parameter for authors who wish to use their ORCID to ensure the papers used are their own work. The `save_name` argument is an optional argument for naming the saved wordcloud file.

An example of this is shown below
![This is an image](examples/example.png)



