robbi5 / kleineanfragen

Collecting kleine Anfragen from Parlamentsdokumentationssystemen for easy search- and linkability
https://kleineanfragen.de
MIT License
43 stars 9 forks source link

Update Saarland #119

Open robbi5 opened 5 years ago

robbi5 commented 5 years ago

They changed their website again, this time it even doesn't look like Sharepoint anymore.

Overview:

POST https://www.landtag-saar.de/umbraco/aawSearchSurfaceController/SearchSurface/GetSearchResults/
Accept application/json, text/javascript, */*; q=0.01

{"Filter":{"Periods":[]},"Pageination":{"Skip":0,"Take":10},"Sections":{"Print":true},"Sort":{"SortType":0,"SortValue":0},"OnlyTitle":false,"Value":"","CurrentSearchTab":0}

Detail:

POST https://www.landtag-saar.de/umbraco/aawSearchSurfaceController/SearchSurface/GetSearchResults/
Accept application/json, text/javascript, */*; q=0.01

{"Filter":{"Periods":[]},"Pageination":{"Skip":0,"Take":10},"Sections":{"Print":true},"Sort":{"SortType":0,"SortValue":0},"OnlyTitle":false,"Value":"","CurrentSearchTab":1,"KendoFilter":{"filters":[{"field":"DocumentNumber","operator":"startswith","value":"16/1234"}],"logic":"and"}}
enricogenauck commented 5 years ago

Hi @robbi5,

I tried to take a quick stab at fixing the saarland scraper without touching to much of the existing code. I'm pretty confident about the overview_scraper part. But since this is my first contact with the code base I'm not sure how to proceed any further. Are pull requests your preferred method of contribution?

Unfortunately I'm not able to test the scraper and the changes in more depth with my current knowledge of the code base.

robbi5 commented 5 years ago

Hi @enricogenauck, wow. thank you very much for the contribution - yes, a pull request would be great. Don't worry about not being able to test the scraper, i'll try it out and also have a look at the detail scraper. btw, thanks for introducing webmock into the project :)