title: "Craigslist Lost and Found" output: html_document
This app is currently deployed here.
Craigslist Lost and Found is a simple app that reads from a Google Sheet that is "published to the web" and can be found here. This Google Sheet uses the built-in function IMPORTXML
to scrape Craigslist's Lost and Found listing. You can view the posts listed for any one day and also see the overall number and type of posts.
//span[@class='pl']
.=IMPORTXML(URL, XPATH_QUERY)
in a cell. Make sure there is a good amount of blank cells to the right or else the data may not fit and an error is thrown. If all goes well, a table of data populates to the right of the formula cell. Resources on getting the XPath expression: It is useful to see the HTML of the page (eg. in Chrome you can right click -> Inspect Element).
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.