Auf dieser Seite funktioniert der XPath //*[@id="smc_page_to0040_contenttable1"]/tbody/tr nicht, da die ID nicht vorhanden ist. Der String //*[@class="smccontenttable smc_page_to0040_contenttable"]/tbody/tr (der auch bei PHP-Templates funktioniert) würde funktionieren.
Traceback (most recent call last):
File "main.py", line 121, in <module>
scraper.work_from_queue()
File "/Users/marian/Documents/Projekte/scrape-a-ris/risscraper/scraper.py", line 73, in work_from_queue
self.get_session(session_id=self.session_queue.get())
File "/Users/marian/Documents/Projekte/scrape-a-ris/risscraper/scraper.py", line 228, in get_session
raise TemplateError('Cannot find agenda using XPath SESSION_DETAIL_AGENDA_ROWS')
risscraper.scraper.TemplateError: Cannot find agenda using XPath SESSION_DETAIL_AGENDA_ROWS
Auf dieser Seite funktioniert der XPath
//*[@id="smc_page_to0040_contenttable1"]/tbody/tr
nicht, da die ID nicht vorhanden ist. Der String//*[@class="smccontenttable smc_page_to0040_contenttable"]/tbody/tr
(der auch bei PHP-Templates funktioniert) würde funktionieren.Seite: http://ratsinfo.bottrop.de/buergerinfo/to0040.asp?__ksinr=7136 Template-System: ASP Version: 4.3.5 bi (Layout3) Fehlermeldung: