Skip to content

Commit

Permalink
Make all scrapers inherit SchoolSpider
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nut committed Jul 15, 2024
1 parent 46f7265 commit 51fdde3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion jedeschule/spiders/bayern.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from scrapy import Item

from jedeschule.items import School
from jedeschule.spiders.school_spider import SchoolSpider


class BayernSpider(scrapy.Spider):
class BayernSpider(SchoolSpider):
name = "bayern"
start_urls = ['https://gdiserv.bayern.de/srv112940/services/schulstandortebayern-wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities']

Expand Down
5 changes: 3 additions & 2 deletions jedeschule/spiders/berlin.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import xml.etree.ElementTree as ET

import scrapy
from jedeschule.items import School
from scrapy import Item

from jedeschule.spiders.school_spider import SchoolSpider

class BerlinSpider(scrapy.Spider):

class BerlinSpider(SchoolSpider):
name = "berlin"
start_urls = ['https://gdi.berlin.de/services/wfs/schulen?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&srsname=EPSG:25833&typename=fis:schulen']

Expand Down
3 changes: 0 additions & 3 deletions jedeschule/spiders/schleswig_holstein.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import csv
import json

import scrapy
import scrapy.http
from scrapy import Item

from jedeschule.items import School
Expand Down

0 comments on commit 51fdde3

Please sign in to comment.