Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
# url_split.py
here2share
May 11th, 2025
454
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
# url_split.py
url
=
"https://www.example.com/docs/ui/rich-text"
idx
=
url.
index
(
'/'
,
10
)
website
,
link
=
url
[
:idx
]
,
'/'
+ url
[
idx+
1
:
]
print
(
website
)
print
(
link
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free Crypto Exploit
CSS | 23 min ago | 0.94 KB
β Method to get 13,000$ in 2 days
CSS | 24 min ago | 0.94 KB
Untitled
45 min ago | 14.07 KB
Untitled
1 hour ago | 3.18 KB
Untitled
2 hours ago | 12.17 KB
efsf overlord interactive
3 hours ago | 1.65 KB
Untitled
4 hours ago | 15.39 KB
πππΊππππΊππΎππ πππΊππΎ ππ πΊπΌπΎπππ π½πΎπ πΌππ½πΎ.
CSS | 6 hours ago | 6.34 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!