Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created November 30, 2025 08:07
Show Gist options
  • Select an option

  • Save masakielastic/43f4586002cfd9f0f43e35f7fea17764 to your computer and use it in GitHub Desktop.

Select an option

Save masakielastic/43f4586002cfd9f0f43e35f7fea17764 to your computer and use it in GitHub Desktop.

pyreqwest で HTTP クライアント

from pyreqwest.client import SyncClientBuilder;

client = SyncClientBuilder().build()
res = (
    client
    .get("https://httpbun.com/get")
    .query({"q":"val"})
    .build()
    .send()
)
print(res.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment