Skip to content

Run Python in Atom and take user input

I created a script which just asks a user for their name and age using Python’s input() function. I installed the package Script. This ran the script well but couldn’t deal with the input. I have also tried a number of other options but haven’t had any success. Any ideas how to build and execute scripts…

get a list from html source using python3

I am trying to get Cases list of COVID-19 positive cases from https://www.worldometers.info/, e.g. this The sample looks like(~line no: 700) : I am using bs4 as: which does scrape the file, but after that I am clueless how to get the data. The list I am looking for is commented with ## I NEED THIS LIST. Kindl…

Regex to extract usernames/names from a string

I have strings that includes names and sometime a username in a string followed by a datetime stamp: I want to extract the usernames from this string: I have tried different regex patterns the closest I came to extract was following: Using the following regex pattern: Answer You may get all text up to the fir…

how can i show the front cover image of an audio file

I am working on a music player program, i wanted to show the song default image while playing it, so how can I add and show it in a Tkinter window. this what i have tried: Output: this helped me to get all the information about its cover image but i wanted to show it in my Tkinter window. Answer

FFMPEG concat leaves audio gapes between clips

I’m writing a python script that uses subprocess to invoke FFMPEG, not using pyffmpeg. My script generates a variable number of MP4 files using the AAC audio codec, and concatenates them together using FFMPEG. Here is how I’m constructing each clip: The command I’m using to concatenate them …