官术网_书友最值得收藏!

WP Web Scrapper

By Akshay Raje (http://webdlabs.com/)

WP Web Scrapper
  • Manual Install URL:
  • Automatic Install search term: WP Web Scrapper
  • Geek level: WordPress Ninja
  • Configuration location: Settings | WP Web Scrapper
  • Used in: Pages, posts

WP Web Scrapper is definitely not for the weak of heart, but it is for those of you who know what a "JQuery Selector" is. If you know what a "JQuery Selector" is, then you are in for one awesome coding treat. WP WebScrapper makes grabbing parts of ANY website and including it in a post or page on your blog, a snap!

WP Web Scrapper uses CURL and phpQuery to grab and manipulate data from any public website. Because WP Web Scrapper uses phpQuery, you have the luxury to select which elements you want from the external website using jQuery Selectors. Plus you do not need to be afraid if the external website changes, as WP Web Scrapper degrades gracefully if any changes occur.

Copyright warning

It's important to note that while WP Web Scrapper makes ripping content from a website super simple, it doesn't mean that it's legal. There are many big websites out there that will not take kindly to someone stealing their content. Make sure that you have permission before you take another website's content, or you might find a nice letter from some law firm in your mailbox.

Adding a scrapping

To create a new Web Scrapping, you edit a post or a page. Once installed, WP Web Scrapper will include a new button in your Toolbar that looks like a Gear.

Adding a scrapping

All that is needed for WP Web Scrapper to work is a valid website URL (Source URL) and a valid CSS Selector. Once you have added the external website's URL (don't forget the http://) and added your selector, click Insert. This plugin will create a short code that is inserted into the body of your post. Once you get familiar with the WP WebScrapper syntax, you will be able to add them without ever clicking the "Gear". For example:

[wpws url="" selector=".product" ]

Learn more about CSS Selectors by visiting http://code.google.com/p/phpquery/wiki/Selectors

主站蜘蛛池模板: 达州市| 兴仁县| 炉霍县| 中宁县| 贵港市| 宜州市| 溆浦县| 探索| 永寿县| 铜梁县| 孟连| 山阴县| 吕梁市| 广饶县| 明光市| 靖安县| 梅州市| 华亭县| 汝阳县| 神木县| 观塘区| 宝清县| 吉安市| 广灵县| 苍山县| 沁源县| 增城市| 文安县| 阿克| 曲麻莱县| 贵定县| 睢宁县| 巴马| 芜湖县| 洛川县| 贺州市| 辰溪县| 鹤峰县| 夏邑县| 盈江县| 井陉县|