Skip to content

Commit 571618c

Browse files
Fixed all PEP 8 errors
1 parent 3abd2d3 commit 571618c

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

examples/simple_fingerprint_test.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class TestFingerprint:
2424

2525
@pytest.mark.asyncio
2626
async def test_fingerprints_are_unique(self):
27-
"""Test if fingerprints generated from multiple browser instances are unique"""
28-
print("\nStarting to test pydoll fingerprint spoofing functionality...")
27+
"""Test if fingerprints generated from multiple browser instances
28+
are unique"""
29+
print("\nStarting to test pydoll fingerprint spoofing functionality"
30+
"...")
2931

3032
# Collect all fingerprints
3133
results = []
@@ -63,18 +65,23 @@ async def test_fingerprints_are_unique(self):
6365
]
6466
print(f" Appears in instances: {indices}")
6567

66-
# Show detailed information for instances using the same fingerprint
68+
# Show detailed information for instances using the same
69+
# fingerprint
6770
print(" Details:")
6871
for idx in indices:
6972
r = next(res for res in results if res["index"] == idx)
70-
print(f" Instance #{idx} UA: {r['user_agent'][:30]}...")
73+
print(f" Instance #{idx} UA: "
74+
f"{r['user_agent'][:30]}...")
7175

7276
# Verify all fingerprints are unique
7377
if len(unique_ids) < len(fingerprint_ids):
74-
print("\n⚠️ Duplicate fingerprints detected, but this doesn't necessarily mean fingerprint spoofing completely failed")
75-
print("FingerprintJS uses many deep browser features, and may require more technical measures for complete spoofing")
78+
print("\n⚠️ Duplicate fingerprints detected, but this doesn't "
79+
"necessarily mean fingerprint spoofing completely failed")
80+
print("FingerprintJS uses many deep browser features, and may "
81+
"require more technical measures for complete spoofing")
7682
else:
77-
print("\n✅ All fingerprint IDs are unique, fingerprint spoofing is working correctly!")
83+
print("\n✅ All fingerprint IDs are unique, fingerprint spoofing "
84+
"is working correctly!")
7885

7986
# Display detailed results
8087
print("\nDetailed results:")

pydoll/browser/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@ def _get_default_binary_location(self) -> str:
621621

622622
def _apply_fingerprint_spoofing(self):
623623
"""
624-
Apply fingerprint spoofing, generate and set a unique browser fingerprint
624+
Apply fingerprint spoofing, generate and set a unique browser
625+
fingerprint
625626
626627
Returns:
627628
None

pydoll/browser/fingerprint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ class FingerprintGenerator:
99
"""
1010
Class for generating browser fingerprint spoofing data.
1111
12-
This class is responsible for generating unique browser fingerprints for each session
13-
to disguise the browser environment and avoid tracking and fingerprint identification.
12+
This class is responsible for generating unique browser fingerprints for
13+
each session to disguise the browser environment and avoid tracking and
14+
fingerprint identification.
1415
"""
1516

1617
# Common operating system list
@@ -839,7 +840,7 @@ class FingerprintManager:
839840
"""
840841
Class for managing browser fingerprints.
841842
842-
Responsible for generating, storing, and applying browser fingerprint
843+
Responsible for generating, storing, and applying browser fingerprint
843844
configurations.
844845
"""
845846

0 commit comments

Comments
 (0)