We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 478fe6bCopy full SHA for 478fe6b
app.py
@@ -0,0 +1,9 @@
1
+from trywebscraping import Fetch
2
+
3
+hn = Fetch("https://news.ycombinator.com")
4
+articles = hn.query("tr.athing").extract({
5
+ "rank": "span.rank",
6
+ "title": "td.title a",
7
+ "link": "td.title a@href"
8
+}).limit(10)
9
+print(articles)
requirements.txt
@@ -0,0 +1 @@
+trywebscraping @ file:///Users/luke/try-web-scraping-lib
0 commit comments