Questions tagged [internet]
This tag indicates that the challenge requires answers to use the Internet to retrieve information.
97 questions
18
votes
11
answers
3k
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 ...
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 ...
2
votes
0
answers
285
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
...
8
votes
7
answers
533
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 ...
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 ...
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 ...
-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 ...
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 ...
5
votes
2
answers
288
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?
...
11
votes
6
answers
498
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 ...
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.
...
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 ...
6
votes
4
answers
406
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?
...
-3
votes
5
answers
299
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 ...
15
votes
8
answers
996
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 ...
3
votes
1
answer
413
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 ...
7
votes
3
answers
498
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 (...
-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 ...
8
votes
0
answers
485
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 ...
4
votes
0
answers
291
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 ...
8
votes
1
answer
465
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 ...
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.
...
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 ...
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 ...
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, ...
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 ...
11
votes
2
answers
444
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 ...
11
votes
15
answers
3k
views
What's my name?
Given a PPCG User ID, output that user's current username.
Examples
...
-4
votes
1
answer
234
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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), ...
6
votes
6
answers
704
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,...
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 ...
11
votes
3
answers
556
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-...
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:
...
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.
...
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 ...
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 ...
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....
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 ...
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, ...
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 ...
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
...
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 (...
-3
votes
3
answers
1k
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 ...