Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
2 answers
7k views

Function for checking if a string is a path or an URL be improved

I made myself a function to check if a string is a path or an URL: ...
TheEagle's user avatar
  • 133
6 votes
1 answer
107 views

How can this async url response checker be cleaner/faster?

...
humid's user avatar
  • 101
3 votes
0 answers
88 views

Asynchronously extract title from URLs using Python

The following code asynchronously extract title from URLs (saved in book-urls.txt). ...
Ahmad Ismail's user avatar
-1 votes
2 answers
147 views

Collect a list of unique "Origin" headers from a repeated URL request [closed]

I want to create a list of the different response headers I get when querying an URL, I succeeded in doing this this way: ...
Kate Velasquez's user avatar
8 votes
3 answers
2k views

Tiny URL creator

Coding challenge: Convert a given long URL into a Tiny URL. The length of this Tiny URL should be fixed and the same for all URLs. You should return the full URL if given a shortened URL. I am ...
MrJoe's user avatar
  • 2,163
4 votes
1 answer
220 views

URL builder in Python

I created a code that will create, or rather build a URL based on the configuration. Everything works, however with the expansion of my project I added multiple languages etc. every section only ...
Kaloian Kozlev's user avatar
10 votes
3 answers
3k views

Imgur URL parser

Fairly new to Python, and I have been doing a few Edabit challenges, to better help with my problem-solving. I have just completed a some what semi-difficult challenge, and I was hoping for some feed ...
tightasbzip's user avatar
2 votes
1 answer
165 views

Generate URLs based on user's menu choices

My program generates URLs. It takes in 3 variables and substitutes them in a URL to create different working URLs. It also has 3 options for language selection, which change the language of the page ...
Kaloian Kozlev's user avatar
5 votes
1 answer
160 views

Download and concatenate text files from multiple API endpoints

Background Chronicling America is an archive of digitized US newspapers hosted by the Library of Congress. The site allows programmatic access of its resources through an API, one part of which is ...
asp47's user avatar
  • 153
6 votes
1 answer
17k views

Joining strings to form a URL

I have to construct a URL string from smaller substrings. I'll usually have a resource url, an endpoint, a ...
Thanassis's user avatar
  • 372
5 votes
1 answer
141 views

Selecting site to browse in python

This code is for part of my first major contribution to open-source, for the socli project. The purpose is to allow the user to select a site from the stack exchange network to browse and fill two ...
auden's user avatar
  • 441
4 votes
2 answers
2k views

Filter out URLs with any of some given file extensions

I wrote some code to filter a list of links, URLs, with multiple conditions given by file extensions. I want to remove every URL that is not an HTML file. The code is: ...
tulians's user avatar
  • 379
10 votes
2 answers
657 views

Taking YouTube links out of a list of GitHub repo READMEs

I have a .csv file that contains student GitHub repository assignment submissions. I made a script to go to each repository and extract the YouTube video that they must have provided in their README ...
Majiick's user avatar
  • 711
3 votes
3 answers
618 views

URLIfy a character array using Python - follow-up

This is a follow up to my last code review: URLify a string using Python This problem has been reviewed in other languages, but I tried to solve this without looking at those answers. I am hoping ...
Average's user avatar
  • 851
9 votes
2 answers
9k views

URLify a string using Python

I have been working my way through the exercises in the book Cracking the Coding Interview. I wanted to get feedback for the following exercise. Write a method to replace all spaces in a string ...
Average's user avatar
  • 851