Skip to content

Commit

Permalink
Release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuppnig Markus committed Sep 22, 2023
1 parent 3a40854 commit 4c15e33
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 80 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Run the following command in bash to install this package with [pip](https://pyp
### Installing the package

```bash
pip install -i https://test.pypi.org/simple/ Schengen-Borders-Information-Scraper
pip install -i https://test.pypi.org/simple/ Schengen_Borders_Information_Scraper
```

After installing the library, you can import the schengen_scraper module into your Python script and utilize the provided functions.
After installing the library, you can import the scraper module into your Python script and utilize the provided functions.

### Importing the Module

```python
import schengen_scraper
import Schengen_Borders_Information_Scraper.scraper as scraper
```

### Available Functions
Expand All @@ -39,32 +39,32 @@ import schengen_scraper
This function retrieves a list of countries that have temporary border control.

```python
countries = schengen_scraper.get_countries()
countries = scraper.get_countries()
```

`get_temporary_borders()`

Get information about temporary border controls for all countries. It returns a dictionary with country names as keys and information about the start date, end date, and reason for the border control as values.

```python
borders = schengen_scraper.get_temporary_borders()
borders = scraper.get_temporary_borders()
```

`get_country(country)`

Retrieve information about the temporary border control of a specific country. It returns a dictionary with information about the start date, end date, and reason for the border control.

```python
country_info = schengen_scraper.get_country("Austria")
country_info = scraper.get_country("Austria")
```

### Example Usage

```python
import schengen_scraper
import Schengen_Borders_Information_Scraper.scraper as scraper

# Get a list of countries with temporary border control
countries = schengen_scraper.get_countries()
countries = scraper.get_countries()
print(countries)

if 'Austria' in countries:
Expand All @@ -90,8 +90,8 @@ Before you begin, make sure you have the following:
First, clone the project repository to your local machine:

```bash
git clone git@github.com:Markus-Stuppnig/Schengen-Borders-Information-Scraper.git
cd Schengen-Borders-Information-Scraper
git clone git@github.com:Markus-Stuppnig/Schengen_Borders_Information_Scraper.git
cd Schengen_Borders_Information_Scraper
```

#### Create a Virtual Environment
Expand Down
23 changes: 18 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#[build-system]
#requires = ["setuptools>=61.0", "requests>=2.31.0", "beautifulsoup4>=4.12.2"]
#build-backend = "setuptools.build_meta"

[build-system]
requires = ["setuptools>=61.0", "requests>=2.31.0", "beautifulsoup4>=4.12.2"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "requests", "beautifulsoup4"]
build-backend = "hatchling.build"

[project]
name = "Schengen-Borders-Information-Scraper"
version = "0.0.2"
name = "Schengen_Borders_Information_Scraper"
version = "0.0.1"
authors = [
{ name="Markus Stuppnig", email="accounts@stuppnig.net" },
]
Expand All @@ -16,7 +20,16 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
'requests>=2.31.0',
'beautifulsoup4>=4.12.2',
]

[project.urls]
"Homepage" = "https://github.com/Markus-Stuppnig/Schengen-Borders-Information-Scraper"
"Bug Tracker" = "https://github.com/Markus-Stuppnig/Schengen-Borders-Information-Scraper/issues"
"Bug Tracker" = "https://github.com/Markus-Stuppnig/Schengen-Borders-Information-Scraper/issues"

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
1 change: 1 addition & 0 deletions src/Schengen_Borders_Information_Scraper/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import Schengen_Borders_Information_Scraper
54 changes: 0 additions & 54 deletions src/schengen_border_control.egg-info/PKG-INFO

This file was deleted.

9 changes: 0 additions & 9 deletions src/schengen_border_control.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion src/schengen_border_control.egg-info/dependency_links.txt

This file was deleted.

1 change: 0 additions & 1 deletion src/schengen_border_control.egg-info/top_level.txt

This file was deleted.

Empty file.
Binary file not shown.
Binary file not shown.

0 comments on commit 4c15e33

Please sign in to comment.