drandreaskrueger / drandreaskrueger/plutoalert

get rid of all external libraries, e.g. `pip install requests`

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

replace the (external, pypi) _comfortable_

import requests

by (internal, needs no extra pip installation) the _more tedious_

import urllib, json

to fetch the PlutoTv API call URL, and parse the contained json.

See e.g. [urllib manual](https://docs.python.org/3/howto/urllib2.html) and [json manual](https://docs.python.org/3/library/json.html), and perhaps even the [requests sourcecode](https://github.com/psf/requests) because that builds on top of internal libraries.

Intention: Then the code runs easier in any environment where install from pypi is difficult or impossible.
Perhaps it could be run even in places like this: https://reqbin.com/code/python

### good first issue
This is a **good first issue**, because you can always compare the "before and after", and it's rather easy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.