[Python] How to use 10 socks proxy connections to this JSON file in this Python script?...

Discussão em 'Python' iniciado por Stack, Março 3, 2025.

  1. Stack

    Stack Membro Participativo

    I try to do it without any knownlage of Python, and it worked, but sometimes server send error and data not updated.

    import requests
    import pandas as pd
    import time

    url = 'https://frontend-api.pump.fun/coins/king-of-the-hill'
    header = {"Content-Type": "application/json", "Accept-Encoding": "deflate"}

    while True:
    response = requests.get(url, headers=header)
    rd = response.json()
    df = pd.json_normalize(rd)
    my = r"""
    /\_/\
    ( o.o )
    > ^ <
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |.|.|.|.|.|.|.|.|.|.|.|K|I|N|G|O|F|T|H|E|H|I|L|L|.|.|.|.|.|.|.|.|H|E|.|P|R|O|E|B|I|.|.|.|.|.|.|.|.|.|.|
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    """
    print(my)
    print(df)

    time.sleep(1)

    Continue reading...

Compartilhe esta Página