����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r'''
name: urlsplit
version_added: "2.4"
short_description: get components from URL
description:
- Split a URL into its component parts.
positional: _input, query
options:
_input:
description: URL string to split.
type: str
required: true
query:
description: Specify a single component to return.
type: str
choices: ["fragment", "hostname", "netloc", "password", "path", "port", "query", "scheme", "username"]
'''
EXAMPLES = r'''
parts: '{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit }}'
# =>
# {
# "fragment": "fragment",
# "hostname": "www.acme.com",
# "netloc": "user:password@www.acme.com:9000",
# "password": "password",
# "path": "/dir/index.html",
# "port": 9000,
# "query": "query=term",
# "scheme": "http",
# "username": "user"
# }
hostname: '{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit("hostname") }}'
# => 'www.acme.com'
query: '{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit("query") }}'
# => 'query=term'
path: '{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit("path") }}'
# => '/dir/index.html'
'''
RETURN = r'''
_value:
description:
- A dictionary with components as keyword and their value.
- If I(query) is provided, a string or integer will be returned instead, depending on I(query).
type: any
'''
from urllib.parse import urlsplit
from ansible.errors import AnsibleFilterError
from ansible.utils import helpers
def split_url(value, query='', alias='urlsplit'):
results = helpers.object_to_dict(urlsplit(value), exclude=['count', 'index', 'geturl', 'encode'])
# If a query is supplied, make sure it's valid then return the results.
# If no option is supplied, return the entire dictionary.
if query:
if query not in results:
raise AnsibleFilterError(alias + ': unknown URL component: %s' % query)
return results[query]
else:
return results
# ---- Ansible filters ----
class FilterModule(object):
''' URI filter '''
def filters(self):
return {
'urlsplit': split_url
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 510 B | 0644 |
|
| b64decode.yml | File | 927 B | 0644 |
|
| b64encode.yml | File | 543 B | 0644 |
|
| basename.yml | File | 809 B | 0644 |
|
| bool.yml | File | 631 B | 0644 |
|
| checksum.yml | File | 524 B | 0644 |
|
| combinations.yml | File | 780 B | 0644 |
|
| combine.yml | File | 1.63 KB | 0644 |
|
| comment.yml | File | 2.09 KB | 0644 |
|
| core.py | File | 21.05 KB | 0644 |
|
| dict2items.yml | File | 1.28 KB | 0644 |
|
| difference.yml | File | 1 KB | 0644 |
|
| dirname.yml | File | 820 B | 0644 |
|
| encryption.py | File | 2.63 KB | 0644 |
|
| expanduser.yml | File | 506 B | 0644 |
|
| expandvars.yml | File | 569 B | 0644 |
|
| extract.yml | File | 1.34 KB | 0644 |
|
| fileglob.yml | File | 589 B | 0644 |
|
| flatten.yml | File | 846 B | 0644 |
|
| from_json.yml | File | 905 B | 0644 |
|
| from_yaml.yml | File | 959 B | 0644 |
|
| from_yaml_all.yml | File | 1.25 KB | 0644 |
|
| hash.yml | File | 861 B | 0644 |
|
| human_readable.yml | File | 993 B | 0644 |
|
| human_to_bytes.yml | File | 1.02 KB | 0644 |
|
| intersect.yml | File | 969 B | 0644 |
|
| items2dict.yml | File | 1.52 KB | 0644 |
|
| log.yml | File | 904 B | 0644 |
|
| mandatory.yml | File | 537 B | 0644 |
|
| mathstuff.py | File | 8.12 KB | 0644 |
|
| md5.yml | File | 709 B | 0644 |
|
| password_hash.yml | File | 1.09 KB | 0644 |
|
| path_join.yml | File | 846 B | 0644 |
|
| permutations.yml | File | 969 B | 0644 |
|
| pow.yml | File | 692 B | 0644 |
|
| product.yml | File | 1.87 KB | 0644 |
|
| quote.yml | File | 492 B | 0644 |
|
| random.yml | File | 1.16 KB | 0644 |
|
| realpath.yml | File | 546 B | 0644 |
|
| regex_escape.yml | File | 688 B | 0644 |
|
| regex_findall.yml | File | 1.12 KB | 0644 |
|
| regex_replace.yml | File | 1.47 KB | 0644 |
|
| regex_search.yml | File | 1.04 KB | 0644 |
|
| rekey_on_member.yml | File | 921 B | 0644 |
|
| relpath.yml | File | 758 B | 0644 |
|
| root.yml | File | 618 B | 0644 |
|
| sha1.yml | File | 729 B | 0644 |
|
| shuffle.yml | File | 685 B | 0644 |
|
| split.yml | File | 833 B | 0644 |
|
| splitext.yml | File | 746 B | 0644 |
|
| strftime.yml | File | 1.33 KB | 0644 |
|
| subelements.yml | File | 1.4 KB | 0644 |
|
| symmetric_difference.yml | File | 1 KB | 0644 |
|
| ternary.yml | File | 1.52 KB | 0644 |
|
| to_datetime.yml | File | 1.58 KB | 0644 |
|
| to_json.yml | File | 2.69 KB | 0644 |
|
| to_nice_json.yml | File | 2.21 KB | 0644 |
|
| to_nice_yaml.yml | File | 1.55 KB | 0644 |
|
| to_uuid.yml | File | 785 B | 0644 |
|
| to_yaml.yml | File | 1.64 KB | 0644 |
|
| type_debug.yml | File | 508 B | 0644 |
|
| union.yml | File | 954 B | 0644 |
|
| unique.yml | File | 839 B | 0644 |
|
| unvault.yml | File | 1.04 KB | 0644 |
|
| urldecode.yml | File | 1.53 KB | 0644 |
|
| urls.py | File | 508 B | 0644 |
|
| urlsplit.py | File | 2.56 KB | 0644 |
|
| vault.yml | File | 1.63 KB | 0644 |
|
| win_basename.yml | File | 673 B | 0644 |
|
| win_dirname.yml | File | 679 B | 0644 |
|
| win_splitdrive.yml | File | 819 B | 0644 |
|
| zip.yml | File | 1.32 KB | 0644 |
|
| zip_longest.yml | File | 1.23 KB | 0644 |
|