Skip to content

Commit 99030a1

Browse files
committed
prepare deployment
1 parent bcd6add commit 99030a1

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# _noscrape_ Wrapper
2+
3+
## Overview
4+
Welcome to the official documentation for _noscrape_! This wrapper simplifies the integration of _noscrape_ into your Python projects. _noscrape_ is a tool designed to prevent web scraping by obfuscating HTML elements using true-type fonts with shuffled unicodes.
5+
6+
## Concept
7+
The primary mechanism behind _noscrape_ is the utilization of true-type fonts. _noscrape_ generates a new version with shuffled unicodes, making it impossible to reverse-calculate them. Additionally, glyph-paths inside the font are obfuscated by randomly shifting them slightly.
8+
9+
## Platform Implementation
10+
_noscrape_ is implemented using platform-specific binaries optimized for different operating systems and architectures. These binaries include:
11+
12+
- `noscrape_darwin_arm64`
13+
- `noscrape_darwin_x86_64`
14+
- `noscrape_linux_arm64`
15+
- `noscrape_linux_x86_64`
16+
- `noscrape_windows_x86_64.exe`
17+
18+
These binaries serve as the core engine of _noscrape_, handling the generation of obfuscated text using true-type fonts with shuffled unicodes.
19+
20+
## Wrapper Implementations
21+
Wrapper implementations provided in languages such as PHP, Java, and Node.js facilitate communication with the _noscrape_ binaries. They collect input data, call the appropriate _noscrape_ binary based on the host platform, pass the input data for obfuscation, and return the obfuscated text or other outputs.
22+
23+
## Installation
24+
You can install the _noscrape_ wrapper using pip:
25+
26+
```bash
27+
pip install noscrape
28+
```
29+
30+
## Usage
31+
```python
32+
import noscrape
33+
34+
n = noscrape.Noscrape("example/example.ttf")
35+
36+
text = n.obfuscate("test")
37+
38+
b64_font = n.render()
39+
```
40+

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from setuptools import setup, find_packages
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setup(
7+
name="noscrape", # Replace with your own package name
8+
version="1.0.0", # Initial release version
9+
author="Bernhard Schönberger",
10+
author_email="[email protected]",
11+
description="A package to obfuscate text using Unicode Private Use Area characters",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/noscrape/noscrape-python", # Replace with the URL of your project
15+
packages=find_packages(), # Automatically find and include all packages in the project
16+
classifiers=[
17+
"Programming Language :: Python :: 3",
18+
"Operating System :: OS Independent",
19+
],
20+
python_requires='>=3.6', # Specify the Python versions compatible with your package
21+
install_requires=[
22+
# List your package dependencies here
23+
# e.g., 'requests', 'numpy',
24+
],
25+
entry_points={
26+
'console_scripts': [
27+
'noscrape=noscrape.__main__:main', # Replace with the entry point for your package
28+
],
29+
},
30+
include_package_data=True, # Include non-Python files specified in MANIFEST.in
31+
)

0 commit comments

Comments
 (0)