Giglium / vinted_scraper

A very simple Python package that scrapes the Vinted website to retrieve information about its items.
MIT License
15 stars 3 forks source link

Cannot fetch session cookie #18

Closed Giglium closed 10 months ago

Giglium commented 10 months ago

Describe the bug

When the cookie _vinted_fr_session is not secure the package throws the error: Cannot fetch session cookie

Steps to reproduce

  1. Run the quickstart

Other information

The problem is in these lines, where we check for a secure cookie. https://github.com/Giglium/vinted_scraper/blob/3b42936df85b056b7ddd55f4489676177f0456c3/src/vinted_scraper/vintedWrapper.py#L42L43 It's not mandatory to check if the cookie is secure; we should only check for the cookie name