Metadata-Version: 2.1
Name: tracardi-url-parser
Version: 0.1.3
Summary: The purpose of this plugin is to parse URL and return it.
Home-page: UNKNOWN
Author: 
Author-email: 
License: UNKNOWN
Keywords: tracardi,plugin
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md

# Url parser plugin

This plugin parses URL and returns it as output.

# Configuration

User must provide a path to page URL. By default path is available at `session` in `context.page.url`

```json
{
  "url": "session@context.page.url"
}
```

# Payload

This action does not process payload directly.

# Output

Output example for url `http://web.address.com/path/index.html?param1=1#hash`:

```json
{
  "url": "http://web.address.com/path/index.html?param1=1#hash",
  "scheme": "http",
  "hostname": "web.address.com",
  "path": "path",
  "query": "index.html?param1=1",
  "params": {
    "param1":"1"
  "fragment": "hash"
}
```

