yeagerai / genlayer-simulator

MIT License
16 stars 8 forks source link

SIM-BE-Problems when accessing X through selenium #607

Open AgustinRamiroDiaz opened 1 week ago

AgustinRamiroDiaz commented 1 week ago

Current Selenium cannot access X tweets (and probably many more webpages with wall blocks), which is a huge blocker for creating IC

Deploying this contract

from genlayer import *

import json
import typing

@gl.contract
class TTTTTTtt:
    def __init__(self):
        url = "https://x.com/89113515aJuan/status/1857228351724716258"
        def nondet() -> str:
            web_data = gl.get_webpage(url, mode="text")
            print(web_data)

            return web_data

        result = gl.eq_principle_strict_eq(nondet)
        print(result)

Prints

Don’t miss what’s happening People on X are the first to know. Log in Sign up Welcome to x.com! We are letting you know that we are changing our URL, but your privacy and data protection settings remain the same. For more details, see our Privacy Policy: https://x.com/en/privacy See new posts