aboutsummaryrefslogtreecommitdiffstats
path: root/extra/bulk_edits/2022-02-04_zenodo_spam.md
blob: a95f5180ebbf5083c7e608b277cdc2c92774b386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

## Cleanup Zenodo Spam

    fatcat-cli search releases 'year:2021 title:"DOWNLOAD MP3:" doi_prefix:10.5281 !journal:* in_ia:false' --count
    # 29653

    fatcat-cli search releases 'year:2021 title:"DOWNLOAD MP3:" title:"album download" doi_prefix:10.5281 !journal:* in_ia:false' --count
    # 29043

Let's nuke 'em:

    # start small, not automatic
    fatcat-cli search releases 'year:2021 title:"DOWNLOAD MP3:" title:"album download" doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --entity-json --limit 50 \
        | jq 'select(.release_type != "stub")' -c \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such"
    # editgroup_yizvqtz24bfv3jd6vmawiqnojm

    # ok, scale it up!
    fatcat-cli search releases 'year:2021 title:"DOWNLOAD MP3:" title:"album download" doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --entity-json --limit 30000 \
        | jq 'select(.release_type != "stub")' -c \
        | pv -l \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such" --auto-accept

Another pattern:

    fatcat-cli search releases 'year:2021 title:"download album" title:"zip mp3" author:download doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --count
    # 14376

    fatcat-cli search releases 'year:2021 title:"download album" title:"zip mp3" author:download doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --entity-json --limit 30000 \
        | jq 'select(.release_type != "stub")' -c \
        | pv -l \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such" --auto-accept

Did some manual patterns.

Another pattern; checking manually all looks like spam:

    fatcat-cli search releases 'title:"live stream free" doi_prefix:10.5281 !type:stub' --count
    # 176

    fatcat-cli search releases 'title:"live stream free" doi_prefix:10.5281 !type:stub' --entity-json --limit 200 \
        | jq 'select(.release_type != "stub")' -c \
        | pv -l \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such" --auto-accept
    # done

Another large pattern:

    fatcat-cli search releases 'year:2021 title:"Full Album Download" title:mp3 author:download doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --count
    # 14800

    fatcat-cli search releases 'year:2021 title:"Full Album Download" title:mp3 author:download doi_prefix:10.5281 !journal:* in_ia:false !release_type:stub' --entity-json --limit 15000 \
        | jq 'select(.release_type != "stub")' -c \
        | pv -l \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such" --auto-accept

Small pattern:

    fatcat-cli search releases 'gomovies !release_type:stub' --entity-json --limit 50 \
        | jq 'select(.release_type != "stub")' -c \
        | pv -l \
        | fatcat-cli batch update release release_type=stub withdrawn_status=spam --description "Mark Zenodo spam as such"
    # editgroup_fzumcytmljfebldd5az643wqmi