curl_cffi icon indicating copy to clipboard operation
curl_cffi copied to clipboard

[Feature] Add a `.markdown()` function for response

Open perkfly opened this issue 7 months ago • 0 comments

Extract LLM-friendly markdown text from response.

Is your feature request related to a problem? Please describe. N/A

Describe the solution you'd like

from curl_cffi import requests

r = requests.get("https://example.com/content-20240704.html")

text = r.markdown()

Describe alternatives you've considered N/A

Additional context Dependeices should be optional, probably with pip install curl-cffi[extra]

perkfly avatar Jul 05 '24 05:07 perkfly