Skip to content

Instantly share code, notes, and snippets.

@yue4u
Created November 18, 2020 11:29
Show Gist options
  • Save yue4u/a16fd73021e0db00ecd509c08dfa1717 to your computer and use it in GitHub Desktop.
Save yue4u/a16fd73021e0db00ecd509c08dfa1717 to your computer and use it in GitHub Desktop.
トラッキングたくさんの遅いサイト嫌いです
import sys
from pyquery import PyQuery as pq
print(
"\t".join(
pq(url=f"https://thesaurus.weblio.jp/content/{sys.argv[1]}")(".Nwnts")
.text()
.split("\n")
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment