Skip to content

Commit

Permalink
- reformatted file structure
Browse files Browse the repository at this point in the history
- reformatted dist files to utilize a .toml file instead of a setup.py
  • Loading branch information
Themis3000 committed Aug 27, 2021
1 parent d20f6a8 commit ea5006c
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 48 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools >= 35.0.2",
"setuptools_scm >= 2.0.0, <3",
]
build-backend = "setuptools.build_meta"
26 changes: 26 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[metadata]
name = FreeProxyScraper
version = 0.1.17
author = Themis3000
license = "MIT"
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Themis3000/FreeProxyScraper
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
package_dir =
= src
packages = find:
python_requires = >=3.7
include_package_data = True
install_requires =
requests >= 2.26.0
beautifulsoup4 >= 4.9.1
fake-useragent >= 0.1.11

[options.packages.find]
where = src
35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/FreeProxyScraper.py → src/FreeProxyScraper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from utils.plugins import Plugins, Proxy
from utils.decos import GenLimiter
from .utils.plugins import Plugins, Proxy
from .utils.decos import GenLimiter
from typing import Iterator


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from utils.plugins import Proxy, Plugin
from utils.soup import get_soup
from ..utils.plugins import Proxy, Plugin
from ..utils.soup import get_soup
from typing import Iterator
import base64

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from utils.plugins import Proxy, Plugin
from utils.soup import get_soup
from ..utils.plugins import Proxy, Plugin
from ..utils.soup import get_soup
from typing import Iterator

example_proxy_data = [{"ip": "18.345.23.653", "port": 543, "country": "United States", "anon_level": 1, "protocol": "https", "ping": 43},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import requests
from utils.plugins import Proxy, Plugin
from ..utils.plugins import Proxy, Plugin
from typing import Iterator


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from utils.plugins import Proxy, Plugin
from utils.soup import get_soup
from ..utils.plugins import Proxy, Plugin
from ..utils.soup import get_soup
from typing import Iterator


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
from utils.plugins import Proxy, Plugin
from utils.soup import get_soup
from ..utils.plugins import Proxy, Plugin
from ..utils.soup import get_soup
from typing import Iterator, Dict


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from utils.plugins import Proxy, Plugin
from utils.soup import get_soup
from ..utils.plugins import Proxy, Plugin
from ..utils.soup import get_soup
from typing import Iterator

anon_dict = {"elite proxy": 2, "anonymous": 1, "transparent": 0}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed src/utils/__init__.py
Empty file.

0 comments on commit ea5006c

Please sign in to comment.