Python Forum
Highlight and remove specific string of text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Highlight and remove specific string of text
#1
Ok sorry for my newb question, but I figured this was the best place to start. (no real python Knowledge)

Basically I am using a program Called EventGhost and from what I understand it uses Python.
I have a basic script that upon pressing a key, will highlight the browser and copy it to the clipboard
to then paste it into a Program to download the youtube videos for personal studies.

The only real issue with this script I have encountered is any video that is part of a playlist wich always
includes a &list= in the URL will cause the download program to download the entire playlist. now on a playlist's
main page, I can use the Url if I needed to copy all videos in it, but for individual videos I want that exist with
the &list= in the Url it's frustrating to have to delete this part and makes the script useless.

Ok so my question is can I make a basic python script that will take the clipboard after copying the URL and remove
the text &list= and all after it if it's in the URL and then paste it afterward in the download program?

Eventghost is basically a easy to use if this then that program that has various actions to execute
(Move mouse here, close this window, hit this key, ETC..) One of these actions is execute python script, this is why I am here.
Reply


Messages In This Thread
Highlight and remove specific string of text - by itsalmade - Dec-09-2019, 05:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  remove gilberishs from a "string" kucingkembar 2 259 Mar-15-2024, 08:51 AM
Last Post: kucingkembar
Sad How to split a String from Text Input into 40 char chunks? lastyle 7 1,122 Aug-01-2023, 09:36 AM
Last Post: Pedroski55
  Color a table cell based on specific text Creepy 11 1,955 Jul-27-2023, 02:48 PM
Last Post: deanhystad
  highlight the columns and capture amy83 0 800 Mar-24-2023, 07:19 PM
Last Post: amy83
  How to remove footer from PDF when extracting to text jh67 3 5,045 Dec-13-2022, 06:52 AM
Last Post: DPaul
  How to remove patterns of characters from text aaander 4 1,108 Nov-19-2022, 03:34 PM
Last Post: snippsat
Smile please help me remove error for string.strip() jamie_01 3 1,194 Oct-14-2022, 07:48 AM
Last Post: Pedroski55
  Remove a space between a string and variable in print sie 5 1,776 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  How do I remove spurious "." from a string? Zuhan 7 2,034 Apr-12-2022, 02:06 PM
Last Post: Pedroski55
  Editing text between two string from different lines Paqqno 1 1,310 Apr-06-2022, 10:34 PM
Last Post: BashBedlam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020