petergardfjall / garminexport

Garmin Connect activity exporter and backup tool
Apache License 2.0
507 stars 83 forks source link

add impersonate-browser extra: uses curl_cffi for browser impersonation #105

Closed petergardfjall closed 1 year ago

petergardfjall commented 1 year ago

This commit tries to more closely mimic web browser behavior in an attempt to circumvent Cloudflare's bot protection.

If built with the 'impersonate-browser' extra, garminexport will use curl_cffi and a patched libcurl to produce TLS fingerprints that are identical to those of a real web browsers.

The prior 'cloudflare' extra is dropped in favor of the new 'impersonate-browser' extra.

drewbrew commented 1 year ago

Confirmed this worked for me locally

app4g commented 1 year ago

@drewbrew can you confirm if it is still working for you? Login seems to be successful, but can't do anything else.

ref: https://github.com/petergardfjall/garminexport/issues/106

drewbrew commented 1 year ago

Login seems to be successful, but can't do anything else.

@app4g confirmed, I now see exactly the same

drewbrew commented 1 year ago

The latest change worked great for me this morning.