Skip to content

Commit

Permalink
Say 'zeeschuimer' instead of 'extension' to avoid confusion with 4CAT…
Browse files Browse the repository at this point in the history
… extensions
  • Loading branch information
stijn-uva committed Sep 18, 2024
1 parent ee7f434 commit c757dd5
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion common/lib/module_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def expand_datasources(self):
self.datasources[datasource_id]["has_worker"] = bool(worker)
self.datasources[datasource_id]["has_options"] = self.datasources[datasource_id]["has_worker"] and \
bool(self.workers["%s-search" % datasource_id].get_options())
self.datasources[datasource_id]["importable"] = worker and hasattr(worker, "is_from_extension") and worker.is_from_extension
self.datasources[datasource_id]["importable"] = worker and hasattr(worker, "is_from_zeeschuimer") and worker.is_from_zeeschuimer

def load_worker_class(self, worker):
"""
Expand Down
2 changes: 1 addition & 1 deletion datasources/gab/search_gab.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SearchGab(Search):
title = "Import scraped Gab data" # title displayed in UI
description = "Import Gab data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True
fake = ""

# not available as a processor for existing datasets
Expand Down
2 changes: 1 addition & 1 deletion datasources/imgur/search_imgur.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SearchNineGag(Search):
title = "Import scraped Imgur data" # title displayed in UI
description = "Import Imgur data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = [None]
Expand Down
2 changes: 1 addition & 1 deletion datasources/instagram/search_instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SearchInstagram(Search):
title = "Import scraped Instagram data" # title displayed in UI
description = "Import Instagram data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = [None]
Expand Down
2 changes: 1 addition & 1 deletion datasources/linkedin/search_linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SearchLinkedIn(Search):
title = "Import scraped LinkedIn data" # title displayed in UI
description = "Import LinkedIn data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = [None]
Expand Down
2 changes: 1 addition & 1 deletion datasources/ninegag/search_9gag.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SearchNineGag(Search):
title = "Import scraped 9gag data" # title displayed in UI
description = "Import 9gag data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = [None]
Expand Down
2 changes: 1 addition & 1 deletion datasources/tiktok_comments/search_tiktok_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SearchTikTokComments(Search):
title = "Import scraped Tiktok comment data" # title displayed in UI
description = "Import Tiktok comment data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = [None]
Expand Down
2 changes: 1 addition & 1 deletion datasources/truth/search_truth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SearchGab(Search):
title = "Import scraped Truth Social data" # title displayed in UI
description = "Import Truth Social data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True
fake = ""

# not available as a processor for existing datasets
Expand Down
2 changes: 1 addition & 1 deletion datasources/twitter-import/search_twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SearchTwitterViaZeeschuimer(Search):
title = "Import scraped X/Twitter data" # title displayed in UI
description = "Import X/Twitter data collected with an external tool such as Zeeschuimer." # description displayed in UI
extension = "ndjson" # extension of result file, used internally and in UI
is_from_extension = True
is_from_zeeschuimer = True

# not available as a processor for existing datasets
accepts = []
Expand Down
2 changes: 1 addition & 1 deletion webtool/templates/data-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>Metadata</h3>
<li>The data for this data source are gathered and stored by this 4CAT instance.</li>
{% elif label == "static" %}
<li>The data for this datasource are not updated anymore and show a static snapshot.</li>
{% elif label == "extension" %}
{% elif label == "zeeschuimer" %}
<li>The data for this datasource are collected with <a href="https://github.com/digitalmethodsinitiative/zeeschuimer">Zeeschuimer</a>.</li>
{% elif label == "external" %}
<li>The data for this datasource is collected externally (API or custom upload).</li>
Expand Down
4 changes: 2 additions & 2 deletions webtool/views/views_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def data_overview(datasource=None):
if is_static:
labels.append("static")

if hasattr(worker_class, "is_from_extension"):
labels.append("extension")
if hasattr(worker_class, "is_from_zeeschuimer"):
labels.append("zeeschuimer")

# Get daily post counts for local datasource to display in a graph
if is_local == "local":
Expand Down

0 comments on commit c757dd5

Please sign in to comment.