Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
14 changes: 9 additions & 5 deletions gdpr_analyzer.py → gdpr_analyzer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
import platform
import sqlite3

from modules.crypto.crypto import TransmissionSecurity
from modules.report.generate_report import generate_report
from modules.web_beacon.web_beacon import find_beacon, json_parser
from modules.cookies.cookies import cookie_evaluate
from gdpr_analyzer.modules.crypto.crypto import TransmissionSecurity
from gdpr_analyzer.modules.report.generate_report import generate_report
from gdpr_analyzer.modules.web_beacon.web_beacon import find_beacon, json_parser
from gdpr_analyzer.modules.cookies.cookies import cookie_evaluate


class Bcolors:
Expand Down Expand Up @@ -280,7 +280,7 @@ def start():
print("{}[-] JSON generated, it is stored in {}{}".format(Bcolors.GREEN, path_json, Bcolors.RESET))


if __name__ == '__main__':
def main():

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Expand All @@ -289,3 +289,7 @@ def start():
sys.exit(1)

start()


if __name__ == "__main__":
main()
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cryptography.hazmat.primitives import asymmetric
import ssl
import os
from modules.crypto import CipherSuite
from gdpr_analyzer.modules.crypto import CipherSuite

config = configparser.ConfigParser()
config.optionxform = lambda option: option
Expand Down
File renamed without changes.
Empty file.
Empty file.
64 changes: 64 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding: utf-8

from setuptools import setup, find_packages

with open("README.md", "r") as f:
long_description = f.read()

setup(
name="gdpr_analyzer",
version="0.1",
author="dev4privacy",
description="Measures the compliance of any web page with the GDPR by analyzing its source code and behaviour.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/dev4privacy/gdpr-analyzer",
install_requires=[
"beautifulsoup4==4.8.2",
"blessings==1.7",
"bs4==0.0.1",
"cairocffi==1.1.0",
"CairoSVG==2.4.2",
"certifi==2019.11.28",
"cffi==1.13.2",
"chardet==3.0.4",
"cryptography==2.8",
"cssselect2==0.2.2",
"defusedxml==0.6.0",
"html5lib==1.0.1",
"idna==2.8",
"Jinja2==2.10.3",
"MarkupSafe==1.1.1",
"mozfile==2.1.0",
"mozlog==5.0",
"mozprofile==2.4.0",
"mozterm==1.0.0",
"Pillow==7.0.0",
"pycparser==2.19",
"pyOpenSSL==19.1.0",
"Pyphen==0.9.5",
"requests==2.22.0",
"selenium==3.141.0",
"six==1.14.0",
"soupsieve==1.9.5",
"splinter==0.13.0",
"tinycss==0.4",
"tinycss2==1.0.2",
"urllib3==1.25.7",
"WeasyPrint==51"
],
packages=find_packages(),
package_data={
"": ["*.ini"],
"gdpr_analyzer.modules.report": ["images/*", "templates/*"]
},
entry_points={
"console_scripts": ['gdpr-analyzer=gdpr_analyzer.__main__:main']
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GPLv3 License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)