2
Q
提取结果
A
回答
2
试试这个
library(httr)
qr<- POST("http://www.qenergy.com.au/What-Are-Your-Options",
encode="form",
body=list(postcode=3000))
res <- content(qr)
pdfs <- as(res['//a[contains(@href, "pdf")]/@href'], "character")
head(pdfs)
# [1] "flux-content/qenergy/pdf/VIC price fact sheet jemena distribution zone business/Jemena-Freedom-Biz-5-Day-Time-of-Use-A210.pdf"
# [2] "flux-content/qenergy/pdf/VIC price fact sheet jemena distribution zone business/Jemena-Freedom-Biz-7-Day-Time-of-Use-A250.pdf"
# [3] "flux-content/qenergy/pdf/VIC price fact sheet jemena distribution zone business/Jemena-Freedom-Biz-Single-Rate-CL.pdf"
# [4] "flux-content/qenergy/pdf/VIC price fact sheet jemena distribution zone business/Jemena-Freedom-Biz-Single-Rate.pdf"
# [5] "flux-content/qenergy/pdf/VIC price fact sheet united energy distribution zone business/United-Freedom-Biz-5-Day-Time-of-Use.pdf"
# [6] "flux-content/qenergy/pdf/VIC price fact sheet united energy distribution zone business/United-Freedom-Biz-7-Day-Time-of-Use.pdf"
相关问题
- 1. 提取结果
- 2. PHP/MySQL的提取结果
- 3. iMacros提取谷歌结果
- 4. MySQL提取结果由delimeter
- 5. 提取Google搜索结果
- 6. PDO提取结果从ID
- 7. Imaco - 从搜索结果中提取HREF搜索结果
- 8. HQL仅从多个结果中提取一个结果
- 9. Python将YQL结果提取到MySQL中
- 10. 根据参数WordPress提取结果
- 11. PDO不提取任何结果
- 12. 在CakePHP中提取查询结果3
- 13. 获取表单提交的结果
- 14. 从结果中提取值Linux
- 15. 提取Google搜索结果重定向
- 16. 如何提取selectedItems的结果()
- 17. 从R列表中提取结果
- 18. 提取从最高值的iperf结果
- 19. SPARQL:为每个结果提取dbo类
- 20. 不从表中提取所有结果
- 21. Excel 2003:提取计算结果
- 22. 提取numpy的阵列切片结果
- 23. Python:从结果中提取数字
- 24. 从BeautifulSoup结果提取的数据集
- 25. 提取函数结果的行号
- 26. Backbone.js的提取结果缓存
- 27. 提取结果在2小时以来
- 28. 从上到下MySQL提取结果
- 29. 提取GWT服务的结果
- 30. 如何从asp.net regex.match中提取结果?