Skip to content

Commit

Permalink
Merge pull request #355 from biglocalnews/tags
Browse files Browse the repository at this point in the history
Added __tags__ dunder to all scrapers
  • Loading branch information
palewire authored Jan 21, 2022
2 parents bbe65d4 + 262c545 commit 82354a9
Show file tree
Hide file tree
Showing 30 changed files with 49 additions and 44 deletions.
3 changes: 3 additions & 0 deletions warn/scrapers/ak.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = [
"html",
]


def scrape(
Expand Down
3 changes: 3 additions & 0 deletions warn/scrapers/al.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = [
"html",
]

logger = logging.getLogger(__name__)

Expand Down
3 changes: 3 additions & 0 deletions warn/scrapers/az.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = [
"jobcenter",
]


def scrape(
Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html", "pdf", "excel"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/co.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .. import utils

__authors__ = ["ydoc5212"]
__tags__ = ["google-sheets"]

logger = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "shallotly"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["jobcenter"]


def scrape(
Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/fl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "Dilcia19", "shallotly"]
__tags__ = ["html", "pdf"]

logger = logging.getLogger(__name__)

Expand Down
5 changes: 2 additions & 3 deletions warn/scrapers/ga.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
from .. import utils
from ..cache import Cache

__authors__ = [
"chriszs",
]
__authors__ = ["chriszs"]
__tags__ = ["html"]


def scrape(
Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/in.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/ks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["jobcenter"]


def scrape(
Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "Dilcia19", "shallotly"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
5 changes: 2 additions & 3 deletions warn/scrapers/me.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
]
__authors__ = ["zstumgoren"]
__tags__ = ["jobcenter"]


def scrape(
Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/mo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "shallotly"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/mt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "ydoc5212"]
__tags__ = ["html", "excel"]


def scrape(
Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/ne.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
from .. import utils
from ..cache import Cache

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/nj.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
from .. import utils
from ..cache import Cache

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/ny.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/oh.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/ok.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["jobcenter"]


def scrape(
Expand Down
6 changes: 3 additions & 3 deletions warn/scrapers/or.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ..cache import Cache

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html", "excel"]

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -39,9 +40,8 @@ def scrape(

# Convert the sheet to a list of lists
row_list = []
for r in list(worksheet.rows)[
2:
]: # Skip the first two rows, which contain a crufty header
# Skip the first two rows, which contain a crufty header
for r in list(worksheet.rows)[2:]:
column = [cell.value for cell in r]
row_list.append(column)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/ri.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from ..cache import Cache

__authors__ = ["Dilcia19", "ydoc5212"]
__tags__ = ["html", "excel"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/va.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "shallotly"]
__tags__ = ["html", "csv"]

logger = logging.getLogger(__name__)

Expand Down
5 changes: 2 additions & 3 deletions warn/scrapers/vt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
]
__authors__ = ["zstumgoren"]
__tags__ = ["jobcenter"]


def scrape(
Expand Down
6 changes: 2 additions & 4 deletions warn/scrapers/wa.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

from .. import utils

__authors__ = [
"zstumgoren",
"Dilcia19",
]
__authors__ = ["zstumgoren", "Dilcia19"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/wi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .. import utils

__authors__ = ["zstumgoren", "Dilcia19", "ydoc5212"]
__tags__ = ["html"]

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 82354a9

Please sign in to comment.