Title: Parse URL
Author: ketanmujumdar
Published: <strong>2012 年 5 月 30 日</strong>
Last modified: 2012 年 6 月 2 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/parse-url.svg)

# Parse URL

 作者：[ketanmujumdar](https://profiles.wordpress.org/ketanmujumdar/)

[下载](https://downloads.wordpress.org/plugin/parse-url.zip)

 * [详情](https://cn.wordpress.org/plugins/parse-url/#description)
 * [评价](https://cn.wordpress.org/plugins/parse-url/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/parse-url/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/parse-url/#developers)

 [支持](https://wordpress.org/support/plugin/parse-url/)

## 描述

URL Parse plugin will be responsible for fetching meta information along with 330
characters from the supplied website url.
 Optionally, it also takes the image parameter
where we need to supply a specific uploaded image in the post. This parser takes
care of url forwarding. Optionally this parser takes 2 parameters named url_name
and tag_name. These parameters are stored in the database as key-value pair. url_name
is the primary DNS and tag_name is the tag within which the actual text is stored.

For example,
 If the url = http://timesofindia.indiatimes.com/india/Italy-regrets-
killing-of-Indian-fishermen/articleshow/11990083.cms and if the text is actually
under the tag “div class=Normal” then the shortcode can be used as follows: [url_parse
url=’http://timesofindia.indiatimes.com/india/Italy-regrets-killing-of-Indian-fishermen/
articleshow/11990083.cms’ url_name = ‘timesofindia.indiatimes.com’ tag_name = ‘div
class=Normal’] and next time when one uses any URL of timesofindia.indiatimes.com
then you need not supply the url_name and tag_name as it will be stored in the database.

Plugin Usage:
 [url_parse url=’%WEB_PAGE_URL%’ tag = ‘$TAG_CONTAINING_INFO%’] where,
WEB_PAGE_URL = url link of the web page; currently supports http/https protocol 
supoorting web pages; required TAG_CONTAINING_INFO = the tag under which the information
is contained; Generally certain browsers are helpful in finding this information.
For e.g. in mozilla firefox when you select a certain text/element in a web-page
and right-click ,you get an option ‘View Selection Source’. This can be used to 
examine under which tag the content is placed. Alternatively you can skim through
the page source to find out; optional

There is database support provided for storing the tags for a particular URL. For
example, if a web page contains certain information under
 a particular ‘tag’ and
you specify it, the logic is intelligent enough to store it which will help one 
get the data required from the same page without specifying the ‘tag’ again.

## 安装

 1. Upload ‘url-parse-plugin.php’, ‘url_parse_table.php’ and ‘simple_html_dom.php’ 
    to the ‘/wp-content/plugins/’ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

Query : When does the table get created ?
 Ans : url_parse_table.php is responsible
for creating the table when you upload the php files. A hook has been registered
and some initial data is also added.

Query : How do i add data in the table for my web page/ url ?
 Ans : For example,
If the url = http://timesofindia.indiatimes.com/india/Italy-regrets-killing-of-Indian-
fishermen/articleshow/11990083.cms and if the text is actually under the tag “div
class=Normal” then the shortcode can be used as follows: [url_parse url=’http://
timesofindia.indiatimes.com/abc/xyz/def/content.cms’ tag = ‘div class=Normal’] and
next time when one uses any URL under the domain ‘timesofindia.indiatimes.com’ then
one need not supply the ‘tag’ as it will be stored in the database.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Parse URL」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ketanmujumdar ](https://profiles.wordpress.org/ketanmujumdar/)

[帮助将「Parse URL」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/parse-url)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/parse-url/)，查看[SVN仓库](https://plugins.svn.wordpress.org/parse-url/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/parse-url/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/parse-url/)。

## 额外信息

 *  版本 **2.0**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **2.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/parse-url/)
 * 标签
 * [parse](https://cn.wordpress.org/plugins/tags/parse/)[url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.wordpress.org/plugins/parse-url/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/parse-url/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/parse-url/reviews/)

## 贡献者

 *   [ ketanmujumdar ](https://profiles.wordpress.org/ketanmujumdar/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/parse-url/)