xidel
Download and extract data from HTML/XML pages as well as JSON APIs. More information: https://www.videlibri.de/xidel.html#examples.
- Print all URLs found by a Google search:
xidel "//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']"
- Print the title of all pages found by a Google search and download them:
xidel "" --download ''
- Follow all links on a page and print the titles, with XPath:
xidel
- Follow all links on a page and print the titles, with CSS selectors:
xidel "a" --css
- Follow all links on a page and print the titles, with pattern matching:
xidel "" ""
- Read the pattern from
example.xml(which will also check if the element containing "ood" is there, and fail otherwise):
xidel ""
- Print all newest Stack Overflow questions with title and URL using pattern matching on their RSS feed:
xidel ""
- Check for unread Reddit mail, Webscraping, combining CSS, XPath, JSONiq, and automatically form evaluation:
xidel "" ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
