Metadata-Version: 2.1
Name: pyurl
Version: 0.1.2
Summary: Website new updates/blogs CLI notifier
Home-page: https://github.com/ydcjeff/pyurl
Author: Jeff Yang
Author-email: ydc.jeff@gmail.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/ydcjeff/pyurl/issues
Project-URL: Source, https://github.com/ydcjeff/pyurl/
Keywords: url,web scrapper,cli
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6.0, <4
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: beautifulsoup4
Requires-Dist: lxml
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: flake8 ; extra == 'test'
Requires-Dist: black ; extra == 'test'
Requires-Dist: isort ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: codecov ; extra == 'test'

# PyURL [![CircleCI](https://circleci.com/gh/ydcjeff/pyurl.svg?style=svg)](https://app.circleci.com/pipelines/github/ydcjeff/pyurl) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b28a8e4405b44a6582d6b9c1c7421d3b)](https://app.codacy.com/manual/ydcjeff/pyurl?utm_source=github.com&utm_medium=referral&utm_content=ydcjeff/pyurl&utm_campaign=Badge_Grade_Dashboard) [![CodeFactor](https://www.codefactor.io/repository/github/ydcjeff/pyurl/badge)](https://www.codefactor.io/repository/github/ydcjeff/pyurl)

PyURL is the CS50x 2020 Final Project. What it does is to let you check if your favourite websites have released/updated new blogs, articles, posts, announcements or releases.

Here's all what you can do:

-  You can add the url or urls of the websites with `-a [URL(s)]`
-  You can check updates about all the added websites with `-s all` or specific website with `-s [URL(s)]`
-  You can open them at once with `-o`
-  You can list out the updates you haven't opened yet with `-nv` and open them at once with `-o` if you want
-  You can also remove the url(s) you wish to remove with `-rm [URL(s)]`
-  You can print out the added urls with `-l`

## Sample

Adding:

```shell
pyurl -a https://pytorch.org/blog,https://blog.tensorflow.org
```

Syncing:

```shell
pyurl -s all -o # or
pyurl -s all # or
pyurl -s https://pytorch.org/blog,https://blog.tensorflow.org
```

Viewing the updates that haven't opened:

```shell
pyurl -nv # or
pyurl -nv -o # to open at once
```

Removing:

```shell
pyurl -rm https://pytorch.org/blog,https://blog.tensorflow.org
```

## Requirements

- Python 3.6 or greater
- pip 3
- requests
- Beautiful Soup 4
- SQLite 3
- lxml

## Installation

```shell
pip install pyurl
```

## Usage

You can now use `pyurl`.

```shell
usage: pyurl <commands> [URL(s)]

Get notified about new blogs, updates of your favourite webistes and visit
them at once

Commands:
  -a ADD, --add ADD     Add the website url
  -s SYNC, --sync SYNC  Check the added websites update status
  -rm REMOVE, --remove REMOVE
                        Remove the added URL(s)
  -l, --log             Output the urls of the added websites
  -o, --open            Open the new found website links
  -nv, --no-view        Output the un-opened links

Options:
  -V, --version         Output version number
  -h, --help            Output usage information
```

## LICENSE

MIT


