Skip to main content

Questions tagged [internet]

This tag indicates that the challenge requires answers to use the Internet to retrieve information.

Filter by
Sorted by
Tagged with
17 votes
11 answers
2k views

Write a Web server quine

Write a program that accepts HTTP requests on any port of your choice above 1024, and responds to requests on any URL of your choice with its own source code. It must work with, at least, Firefox and ...
Someone's user avatar
  • 1,620
16 votes
18 answers
2k views

Get all URLs on an HTML webpage

This is a rewrite of the (currently closed) "Debunking Stroustrup's debunking of the myth “C++ is for large, complicated, programs only”" challenge. Challenge Write the shortest program or ...
bigyihsuan's user avatar
2 votes
0 answers
281 views

Shorten this dns txt record request script as much as possible

I have made a short script that will pull dns txt records down from a server and combine them into a single string. DNS txt records are: 1.website.com ...
I am Jakoby's user avatar
8 votes
7 answers
528 views

Fetch the answer from the Internet

So, normally, this is a forbidden loophole to fetch the desired output from an external source. But this challenge is an exception ! In this challenge you will have to fetch data from the internet and ...
CreaZyp154's user avatar
13 votes
8 answers
1k views

What is the link to your answer?

Goal Your task is to create a program taking no input that returns the link to your answer. You can find a link to your answer by clicking at the share button on your answer. Rules Standard loopholes ...
Xwtek's user avatar
  • 2,039
13 votes
6 answers
1k views

Print Every Code Golf tag

Huge omega thanks to @wasif for emailing me this challenge idea in its basic form Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by ...
lyxal's user avatar
  • 33.7k
-2 votes
11 answers
268 views

Check if a server is online or not for you? [closed]

Inspired from Is this site down or is it just me? Challenge You have to print if a website server is online or not, for you. Input The domain name, like ...
user avatar
11 votes
23 answers
2k views

Get the IP address of google.com [closed]

Challenge In this simple challenge, you have to print the public IP address of google.com. Rules You have to output either the IPv6 or IPv4 address, and do it by ...
user avatar
5 votes
2 answers
284 views

Create a Language of The Month answer scraper

When I was posting answers for the Husk Language of The Month thread, I realized it took more time to enter them in the thread than it took to actually write the answers. So, why not automate it? ...
Razetime's user avatar
  • 27.2k
11 votes
6 answers
496 views

Approx how many search results

When one performs a search query using Google, one of the first things you see is an approximation of how many results were found. Today, you'll be simulating this in as few bytes as possible. Input A ...
user avatar
7 votes
0 answers
233 views

Find the busiest hour for each stackexchange site [closed]

Input Name of a stackexchange site or any way to uniquely identify the site. Output The hour of the day that had the largest number of answers posted over the previous 24 hours. E.g. 14:00-15:00 GMT. ...
user avatar
19 votes
3 answers
2k views

All roads lead to Rome

"All roads lead to Rome" is a saying that essentially means there are plenty of different ways of achieving an objective. Task Your task is to write a program that finds a set of link connections ...
RGS's user avatar
  • 14.1k
6 votes
4 answers
402 views

A Nice, Simple Web Scraping Code Golf

Introduction This is a web scraping Code Golf challenge that attempts to take stock Name and price columns from the 'Most Active' list on this New York Times URL. Why is this challenge interesting? ...
VBAmazing's user avatar
-3 votes
5 answers
297 views

Get the number of images on a webpage [closed]

Recreational languages win at code golf too much. This challenge is simple, when using higher level functions. The task is as follows: Given any valid url, which is guaranteed to result in a valid ...
0liveradam8's user avatar
15 votes
8 answers
989 views

The Great API Easter Egg Hunt!

API Easter egg hunt! There's an API at http://easter_egg_hunt.andrewfaraday.com which will provide a special Easter egg hunt, just for you... You can see the API docs at the above address, or try it ...
AJFaraday's user avatar
  • 11.8k
3 votes
1 answer
412 views

Race for the Steward Badge

Backstory If you visit the Steward Badge Page, you will see no one has received one of these badges from PPCG yet. However, there are two users: DJMcMayhem & Martin Ender, that are only a few ...
DevelopingDeveloper's user avatar
7 votes
3 answers
493 views

Add TIO link to messages!

It's annoying when you have to search for a language homepage, get its link, and add it to your SE comment/answer, right? Let's write a script to do that for you! Challenge For each language name (...
DELETE_ME's user avatar
  • 17.3k
-1 votes
1 answer
180 views

Tell my browser [duplicate]

Background Many people visit webpages, which require special browsers because of lack of compatibility. So you have to write a script (client sided or server sided), which just prints the name of the ...
univalence's user avatar
  • 1,659
8 votes
0 answers
478 views

Get ERC-20 token balance

Ethereum is a blockchain platform. It has its own native cryptocurrency, ether, but in this challenge, we'll be focusing on its ability to run smart contracts. The ERC-20 standard describes an ...
Nick Clifford's user avatar
4 votes
0 answers
288 views

2017 SCRAM Finder

Background The nuclear industry has term, SCRAM, used to describe a quick shutdown of the reactor. There's a fun myth that it stands for "Safety Control Rod Ax Man," the role which served ...
wnnmaw's user avatar
  • 1,608
8 votes
1 answer
460 views

Declare a Code Golf Winner

Normally, I'd open with some flavor text here about being bored and/or lazy but looking through the stack-exchange-api questions that would be far from original. So instead I'm going to open with a ...
Nissa's user avatar
  • 3,634
2 votes
3 answers
566 views

A British find-a-movie challenge

This is a more difficult version of It's a find-a-movie challenge . Input Your code should take a BBFC rating and a number from 1 to 5 as input. It can do this in any way you find convenient. ...
user avatar
10 votes
6 answers
2k views

It's a find-a-movie challenge

This is a simple(ish) web scraping challenge. Input Your code should take an MPAA film rating and a number from 0 to 100 as input. It can do this in any way you find convenient. Output Your code ...
user avatar
18 votes
9 answers
2k views

Answer to Vote Ratio

This question is inspired by the fact that I love seeing questions with equal vote and answer counts... So here's a simple stack-exchange-api challenge for y'all: Challenge: Given a ...
Socratic Phoenix's user avatar
25 votes
21 answers
4k views

What's my IP Address?

I'm surprised this hasn't come up in a challenge yet. Output the IP address of the machine you're running on. You are required to output both the local and external IP addresses. Local IP address, ...
MysticVagabond's user avatar
17 votes
8 answers
2k views

What's my PPCG ID?

Challenge Given the name of a PPCG member, output their PPCG ID number. If the user does not exist, you may report an error or return any non-positive number. If there are multiple members with this ...
musicman523's user avatar
  • 4,772
11 votes
2 answers
439 views

Take me to your leaderboard [duplicate]

Have you ever found a good challenge to answer, answered it and then found out somebody posted a solution with a better score in the same language? Challenge Write a program/function that takes a ...
totallyhuman's user avatar
  • 17.2k
11 votes
15 answers
3k views

What's my name?

Given a PPCG User ID, output that user's current username. Examples ...
MD XF's user avatar
  • 13.9k
-5 votes
1 answer
233 views

Net neutrality: Is my internet being throttled?

From the wikipedia: Net neutrality is the principle that Internet service providers and governments regulating the Internet should treat all data on the Internet the same, not discriminating or ...
user avatar
2 votes
2 answers
265 views

Create your original sequence challenge

There are lots of challenges that just pick a sequence from oeis and ask you to print n-th number or first n numbers or whatever. It's time to stop automate! Task Your task is to parse a sequence ...
Dead Possum's user avatar
  • 3,434
14 votes
16 answers
3k views

Is this site down or is it just me?

Challenge The challenge is simple, using http://isup.me, determine whether an inputted website is up or down. If the site is up, you should return a truthy value and if the site is down, you should ...
Beta Decay's user avatar
  • 23.4k
81 votes
17 answers
16k views

Build a Faulty XKCD Browser

Challenge Given the number of an XKCD comic, output the title text of that comic (the mouseover text). However, the program must throw an error when given the numbers ...
Beta Decay's user avatar
  • 23.4k
10 votes
8 answers
941 views

10 Clickbaits you can't resist

Write a program/function/script that takes a natural number i from 1 to 10 as input and outputs the URL of the Question with the i th hottest question on the Code Golf Portal The ordering should be ...
Moartem's user avatar
  • 373
6 votes
3 answers
498 views

Lazy Click and Drag

Your task is to write a program or function which, given two nonzero integers x and y, returns a truthy value if the image at ...
fireflame241's user avatar
  • 16.3k
11 votes
7 answers
1k views

Count the videos in a Youtube Playlist

Challenge Given a Youtube playlist, output the number of videos in it. I/O The playlist will be given as an URL; for example, ...
hyper-neutrino's user avatar
  • 42.4k
16 votes
2 answers
462 views

Give me some questions to answer!

Introduction Sometimes I get bored and there are no new questions on PPCG, so I want you to dig a random question from PPCG's past. Challenge Given a user's PPCG ID as input (e.g. my ID is 30525), ...
Beta Decay's user avatar
  • 23.4k
6 votes
6 answers
699 views

Wardialing in the Modern World

Introduction Wardialing was a very interesting way to try to hack people back in the '80s and '90s. When everyone used dial-up, people would dial huge amounts of numbers to search for BBS's, computers,...
kuantum's user avatar
  • 887
11 votes
6 answers
537 views

Unshorten Google Links

Challenge Given a valid goo.gl shortened link, output the original URL. Example goo.gl/qIwi3N would give something like ...
hyper-neutrino's user avatar
  • 42.4k
12 votes
3 answers
554 views

PPCG's Unanswered Questions

This dear StackExchange site has so many challenges, and so many good answers. But what about the challenges that were never answered? Task Write a program or a function that will print a pseudo-...
totallyhuman's user avatar
  • 17.2k
4 votes
1 answer
263 views

Whose rep is tied?

Your challenge is to query the SE API and find out whose rep on PPCG is tied, and output it. If these were all the users on PPCG: ...
user avatar
21 votes
29 answers
4k views

Download a file from the Internet

Introduction Yes, it's as simple as that. Download any file from the internet! Rules You must use your language's API. You must output the file you downloaded to STDOUT, the console, a file, etc. ...
John Hathwood's user avatar
32 votes
10 answers
4k views

Martin vs Dennis - Round 1: Who has more rep?

I know there have been a lot of challenges about "the two best code-golfers in the world", but this one is a bit more unique, being Round 1 in a series of (future) challenges involving the ...
Mr. Xcoder's user avatar
  • 42.4k
15 votes
2 answers
635 views

Am I outgolfed by Dennis?

According to legend, almost everyone is outgolfed by Dennis. If not, they will be. Now I'm curious if I'm one of those 'almost everyone'. You will be given a link to an answer in the format of ...
Matthew Roh's user avatar
  • 5,347
19 votes
1 answer
607 views

What would your reputation be without the rep cap?

In this challenge, you will calculate what your reputation would be, if the reputation cap didn't exist on PPCG. Everyone can access the rawdata for reputation changes on the adress: codegolf....
Stewie Griffin's user avatar
18 votes
9 answers
4k views

Google Autocomplete Fun

Your task is to create a program which, given an input string, will output the first Google autocomplete result for that search. The format of input/output is up to you. Rules Your program must take ...
ckjbgames's user avatar
  • 1,329
10 votes
5 answers
283 views

Find a User's SE Reputation

Challenge Given a SE user's ID, output the sum of their reputation from across all of the Stack Exchange networks​ the user has signed up to. Rules If a user has 101 or less reputation on a site, ...
Beta Decay's user avatar
  • 23.4k
26 votes
20 answers
7k views

Average Length of Google

I was messing around with Pyth's url request feature, and noticed that google always gave a response with a slightly different length for me, usually ~10500 ...
Maltysen's user avatar
  • 25.7k
6 votes
7 answers
571 views

Tell me about my question! [duplicate]

I'm a narcissist. (Not Really) I'm also very lazy... (Not Really) So I want to know the score of this question, and how many people have viewed it. But I'm too lazy to check myself... Challenge ...
hyper-neutrino's user avatar
  • 42.4k
55 votes
32 answers
9k views

Check if computer is connected to the internet

Write a program which, according to whether the script has access to the internet, produces an output which is "Truthy/Falsey". You may try and connect to any existing site, at your own discretion (...
Restioson's user avatar
  • 603
-3 votes
3 answers
931 views

Output a random OEIS sequence

Your challenge: Connect to the Online Encyclopedia of Integer Sequences OEIS.org, access any random valid sequence, output it's ID, and ouput all of the members of the sequence provided by the OEIS ...
Pavel's user avatar
  • 9,377