mirror of https://github.com/xtekky/gpt4free.git
Update Gemini.py
This commit is contained in:
parent
af204c31cb
commit
33b247305c
|
@ -101,7 +101,6 @@ class Gemini(AsyncGeneratorProvider):
|
||||||
) as session:
|
) as session:
|
||||||
async with session.get(cls.url, proxy=proxy) as response:
|
async with session.get(cls.url, proxy=proxy) as response:
|
||||||
text = await response.text()
|
text = await response.text()
|
||||||
open("test.html", "w").write(text)
|
|
||||||
match = re.search(r'SNlM0e\":\"(.*?)\"', text)
|
match = re.search(r'SNlM0e\":\"(.*?)\"', text)
|
||||||
if match:
|
if match:
|
||||||
snlm0e = match.group(1)
|
snlm0e = match.group(1)
|
||||||
|
|
Loading…
Reference in New Issue