Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EFForg/badger-sett
/ functions
Functions
87 in github.com/EFForg/badger-sett
⨍
Functions
87
◇
Types & classes
8
↓ 12 callers
Function
extract
(domain)
lib/basedomain.py:12
↓ 7 callers
Function
get_id
(cur, table, field, value)
initdb.py:172
↓ 5 callers
Method
load_extension_page
Loads Privacy Badger's options page.
crawler.py:618
↓ 5 callers
Method
restart_browser
(self)
crawler.py:1049
↓ 5 callers
Function
run
Convenience wrapper for getting the output of CLI commands
lib/utils.py:4
↓ 4 callers
Method
fetch
(self, url, filename, expire_cache_hrs=24)
lib/lists/blocklist.py:37
↓ 4 callers
Method
get_sitelist
Get the top n sites from the Tranco list
crawler.py:972
↓ 4 callers
Method
handle_alerts_and
(self, fun)
crawler.py:417
↓ 4 callers
Function
run
Convenience wrapper for getting the output of CLI commands
crawler.py:146
↓ 3 callers
Method
cleanup
Remove from snitch map any domains that appear to have been added as a result of bugs.
crawler.py:1176
↓ 3 callers
Method
dump_data
Extract the objects Privacy Badger learned during its training run.
crawler.py:678
↓ 3 callers
Method
load_user_data
Load saved user data into Privacy Badger after a restart
crawler.py:656
↓ 3 callers
Function
wait_for_script
(driver, script, *script_args, execute_async=False, timeout=30, message="Timed out waiting
crawler.py:255
↓ 2 callers
Method
clear_data
Clear the training data Privacy Badger starts with.
crawler.py:711
↓ 2 callers
Method
exists_and_unexpired
(self, filename, expire_cache_hrs)
lib/lists/blocklist.py:27
↓ 2 callers
Method
get_current_url
(self)
crawler.py:1089
↓ 2 callers
Function
get_error_string
(line)
initdb.py:180
↓ 2 callers
Function
get_scan_id
(cur, start_time, end_time, region, num_sites, browser, no_blocking, daily_scan)
initdb.py:60
↓ 2 callers
Function
highlight
(string, root)
lib/linters/mdfp.py:57
↓ 2 callers
Function
ingest_log
(cur, scan_id, log_txt)
initdb.py:256
↓ 2 callers
Function
ingest_scan
(cur, scan_id, snitch_map, tracking_map)
initdb.py:318
↓ 2 callers
Method
log_snitch_map_changes
(self, old_snitches, new_snitches)
crawler.py:1084
↓ 2 callers
Method
raise_on_security_pages
Detects and errors out on anti-bot CAPTCHA or challenge pages.
crawler.py:737
↓ 2 callers
Method
scroll_page
(self)
crawler.py:827
↓ 2 callers
Function
should_restart
(e)
crawler.py:230
↓ 2 callers
Method
start_browser
(self)
crawler.py:1016
↓ 2 callers
Method
take_screenshot
(self, domain)
crawler.py:817
↓ 1 callers
Method
_download
(self, url, filename)
lib/lists/blocklist.py:14
↓ 1 callers
Method
click_internal_link
(self)
crawler.py:886
↓ 1 callers
Method
crawl
Visit each website in `domains` in a browser with Privacy Badger. When finished, export PB's user data.
crawler.py:1095
↓ 1 callers
Function
create_argument_parser
()
crawler.py:73
↓ 1 callers
Function
create_tables
(cur)
initdb.py:69
↓ 1 callers
Function
dismiss_alert
(driver, accept=False)
crawler.py:263
↓ 1 callers
Method
fix_chrome_manifest
Sets extension ID and removes extension storage limit.
crawler.py:486
↓ 1 callers
Method
gather_internal_links
(self)
crawler.py:841
↓ 1 callers
Function
get_browser
(log_txt)
initdb.py:42
↓ 1 callers
Method
get_exclude_domains_summary
(self)
crawler.py:400
↓ 1 callers
Method
get_firefox_options
(self)
crawler.py:433
↓ 1 callers
Function
get_git_info
(path)
crawler.py:152
↓ 1 callers
Function
get_recently_failed_domains
Returns a set of domains that errored or consistently timed out in recent scans.
crawler.py:168
↓ 1 callers
Function
get_shared_base_root
(base)
lib/linters/mdfp.py:14
↓ 1 callers
Function
get_shared_roots
(site_roots, sbr)
lib/linters/mdfp.py:37
↓ 1 callers
Function
get_site_roots
(sites)
lib/linters/mdfp.py:26
↓ 1 callers
Function
get_status_string
(match_type, line, full_matching_string)
initdb.py:238
↓ 1 callers
Method
get_tranco_domains
(self)
crawler.py:951
↓ 1 callers
Function
highlight_common_roots
(base, sites, shared_roots)
lib/linters/mdfp.py:56
↓ 1 callers
Method
ingest
(self, domain, conf)
lib/lists/ddg.py:20
↓ 1 callers
Function
ingest_daily_scans
(cur)
initdb.py:404
↓ 1 callers
Function
ingest_distributed_scans
(badger_swarm_dir, cur)
initdb.py:342
↓ 1 callers
Method
ingest_list
(self, url, filename)
lib/lists/adblocker.py:138
↓ 1 callers
Method
init_logging
(self, log_stdout)
crawler.py:352
↓ 1 callers
Function
internal_link
(page_url, link_href)
crawler.py:274
↓ 1 callers
Function
is_mdfp_first_party
(base1, base2)
lib/mdfp.py:33
↓ 1 callers
Function
load_fp_cdn_domains
()
lib/linters/unblocked.py:19
↓ 1 callers
Function
load_mdfp
()
lib/mdfp.py:14
↓ 1 callers
Method
log_scan_summary
(self)
crawler.py:368
↓ 1 callers
Function
outliers
(data)
lib/linters/site_outliers.py:12
↓ 1 callers
Function
print_prevalence_summary
(cur)
sql/prevalent.py:6
↓ 1 callers
Function
print_trends
(cur)
sql/trending.py:6
↓ 1 callers
Method
process_entity
(self, category, entity)
lib/lists/disconnect.py:19
↓ 1 callers
Method
process_line
(self, line)
lib/lists/adblocker.py:112
↓ 1 callers
Method
raise_on_chrome_error_pages
Chrome doesn't automatically raise WebDriverExceptions on error pages. This makes Chrome behave more like Firefox.
crawler.py:783
↓ 1 callers
Method
raise_on_datadome_pages
(self)
crawler.py:721
↓ 1 callers
Method
raise_on_imperva_pages
(self)
crawler.py:729
↓ 1 callers
Method
save
(self, data, name='results.json')
crawler.py:1239
↓ 1 callers
Method
start_driver
Starts a new Selenium browser session.
crawler.py:539
↓ 1 callers
Method
top
(self)
tests/sitelist_test.py:12
↓ 1 callers
Method
visit_domain
Visit a domain, then spend `self.wait_time` seconds on the site waiting for dynamic loading to complete.
crawler.py:920
↓ 1 callers
Method
wait_for_pb_to_be_ready
(self)
crawler.py:513
Method
__del__
(self)
crawler.py:345
Method
__init__
(self, opts)
crawler.py:320
Method
__init__
(self)
lib/lists/ghostery.py:19
Method
__init__
(self)
lib/lists/ddg.py:42
Method
__init__
(self)
lib/lists/disconnect.py:30
Method
__init__
(self)
lib/lists/adblocker.py:162
Method
_load_ext_page
()
crawler.py:626
Method
_scroll_down
()
crawler.py:831
Function
execute_script
(dr)
crawler.py:257
Method
get_sitelist
(self, # pylint:disable=too-many-arguments,too-many-positional-arguments monkeypa
tests/sitelist_test.py:38
Method
mock_run
(cmd, cwd=None)
tests/sitelist_test.py:53
Method
mock_tranco_list
(self, list_version)
tests/sitelist_test.py:10
Function
print_warnings
(new_js)
lib/linters/unblocked.py:37
Function
print_warnings
Looks for and warns about common "roots" (base minus PSL TLD). :param snitch_map: Privacy Badger snitch map
lib/linters/mdfp.py:83
Function
print_warnings
(snitch_map)
lib/linters/site_outliers.py:19
Function
test_crash
(driver)
crawler.py:217
Method
test_excluding_suffixes
(self, monkeypatch, exclude_suffixes, expected)
tests/sitelist_test.py:22
Method
test_get_recently_failed_domains
(self, monkeypatch)
tests/sitelist_test.py:52