UKBinCollectionData icon indicating copy to clipboard operation
UKBinCollectionData copied to clipboard

Request for new forest council

Open ThomasForeman86 opened this issue 2 years ago • 1 comments

Name of Council

New Forest

Example Address/Postcode

SO41 0GJ

Additional Information

No response

Verification

  • [X] I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
  • [X] I have provided a tested working address/postcode/UPRN with bin collections available
  • [X] I understand that this project is run by volunteer contributors and completion depends on numerous factors - even with a request, we cannot guarantee if/when your council will get a script

ThomasForeman86 avatar Dec 14 '23 19:12 ThomasForeman86

I did spend a little bit of time trying to figure this one out a while ago, but came out a bit blank. Looks like it heavily relies on a server side session, with 3 required steps:

  1. User navigates to https://forms.newforest.gov.uk/ufs/FIND_MY_COLLECTION.eb - 302 redirect to FIND_MY_COLLECTION.eb?ebd=0&ebz=[random_numerical_string] and JSESSIONID cookie
  2. User inputs postcode into CTRL:1:_:A form field and POST to above new URL - 302 redirect to same URL as GET request but new page contents
  3. User selects UPRN from dropdown by address in CTRL:6:_:A form field and POST to same new URL - 302 redirect to same URL as GET request but scrapable bin information

That's a very brief synopsis - removing ebz at any point yeets the session (they're running EBase Xi). Implementation will probably need to step through each step, I see no way of skipping straight to step 3 without the server side session having seen step 2 happen first (for which we need a JSESSIONID)

Also, please note that the bin collection provider is due to change from 2025 - so a new platform may be introduced at this point. (We currently use binbags, how oldschool)

duckfullstop avatar Dec 23 '23 17:12 duckfullstop

Selenium required for this one

robbrad avatar May 28 '24 06:05 robbrad

Proving pretty difficult this one as the page in Selenium just comes up with ERR_TOO_MANY_REDIRECTS

robbrad avatar Jun 01 '24 12:06 robbrad

Sorted !

robbrad avatar Jun 02 '24 07:06 robbrad