Giglium / vinted_scraper

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

is it not working anymore? #57

Closed Smoki-Cool closed 3 weeks ago

Smoki-Cool commented 3 weeks ago

I am unable to even initiate the VintedScraper class because of the following error:

RuntimeError: Cannot fetch session cookie from https://www.vinted.co.uk, because of status code: 403 different from 200.

Is it not working anymore? I tried another library and it didn't work either with the same status code 403

Fedee0 commented 3 weeks ago

I opened a pr that fixes the issue, you may want to use my fork for the moment

TurpeTing commented 3 weeks ago

I have the same issue @Giglium

Smoki-Cool commented 3 weeks ago

I opened a pr that fixes the issue, you may want to use my fork for the moment

Does it work with your cookie update pr? If you don't mind, may I ask if you were successful in using it with this small fix? Thanks!

Fedee0 commented 3 weeks ago

I opened a pr that fixes the issue, you may want to use my fork for the moment

Does it work with your cookie update pr? If you don't mind, may I ask if you were successful in using it with this small fix? Thanks!

It works for me with this fix, doesn't it work for you?

Giglium commented 3 weeks ago

@Fedee0 I tried to run the test of your PR but they failed, we should also fix the mock, so I can merge it!

So Vinted still uses the _vinted_fr_session but the API now wants the access_token_web? Interesting...

Fedee0 commented 3 weeks ago

@Fedee0 I tried to run the test of your PR but they failed, we should also fix the mock, so I can merge it!

So Vinted still uses the _vinted_fr_session but the API now wants the access_token_web? Interesting...

my fix indeed worked for me, and yes vinted still uses _vinted_fr_session although when sending requests it wants access_token_web

Giglium commented 3 weeks ago

fixed the test and released the new package: https://github.com/Giglium/vinted_scraper/releases/tag/2.3.1

Thanks, @Fedee0 for your contribution!

Smoki-Cool commented 3 weeks ago

fixed the test and released the new package: https://github.com/Giglium/vinted_scraper/releases/tag/2.3.1

Thanks, @Fedee0 for your contribution!

It's still not working for me even with the 2.3.1 update. Where are you guys running it from? Vscode? Could it be that it's not working for me cus I'm using it for discord bot and hosting the bot at a cloud service?