Questions tagged [internet]

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

-5
votes
5answers
209 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 ...
2
votes
1answer
327 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
3answers
355 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 (...
0
votes
1answer
136 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 ...
6
votes
0answers
367 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 ...
3
votes
0answers
192 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 to shut ...
5
votes
0answers
256 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 ...
1
vote
3answers
544 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
6answers
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 ...
17
votes
9answers
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 ...
24
votes
19answers
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, ...
16
votes
7answers
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
2answers
350 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 ...
9
votes
15answers
2k views

What's my name?

Given a PPCG User ID, output that user's current username. Examples ...
-4
votes
1answer
216 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 ...
0
votes
2answers
231 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 ...
13
votes
16answers
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 ...
75
votes
16answers
15k 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 ...
8
votes
7answers
684 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 ...
7
votes
3answers
412 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 ...
12
votes
7answers
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, ...
14
votes
2answers
363 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), ...
7
votes
6answers
640 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, ...
10
votes
6answers
403 views

Unshorten Google Links

Challenge Given a valid goo.gl shortened link, output the original URL. Example goo.gl/qIwi3N would give something like ...
8
votes
3answers
481 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
1answer
242 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
27answers
3k 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. ...
33
votes
10answers
3k 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 two of them....
14
votes
2answers
550 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 ...
15
votes
1answer
495 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....
16
votes
9answers
3k 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 ...
10
votes
5answers
246 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, ...
24
votes
18answers
6k 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
7answers
537 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 ...
48
votes
27answers
7k 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
1answer
293 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 ...
7
votes
3answers
270 views

Sprunge this! Sprunge that!

Your task is to create a program or function that creates a paste on sprunge.us. Your program/function must receive the text to sprunge from your language's usual input mechanism, such as standard in; ...
3
votes
3answers
620 views

Identify the IP address

Identify whether an IP address is internal, global, link-local, or reserved. Input should be an IPv4 address in decimal octets separated by periods. Output should be ...
4
votes
2answers
398 views

What's the most popular question right now?

Your task is to print the titles of the questions with the five highest scores (upvotes minus downvotes) here on CodeGolf.SE, while skipping over any closed, locked and on-hold questions. Currently ...
36
votes
11answers
6k views

Display an xkcd

xkcd is everyone's favorite webcomic, and you will be writing a program that will bring a little bit more humor to us all. Your objective in this challenge is to write a program which will take a ...
16
votes
12answers
1k views

How many answers does this question have?

Write a program or a function that outputs the integer number of answers this question has. Your solution should still work as more answers are added. Languages that run in a browser may be run from ...
11
votes
5answers
1k views

Fabulous glamour shot

Found this picture on the web today. Being a lazy programmer, I don't want to actually open google and type a couple of characters. Way too much work! This is such an important task that it should be ...
6
votes
1answer
323 views

The Extreme Voters

Challenge Output the person on PPCG who has cast the most upvotes and the person who has cast the most downvotes. Voters You should only look at the people who have cast more than 1000 votes in ...
6
votes
3answers
647 views

Count the Bytes!

Challenge Write a program which takes the URL of a PPCG answer as input and outputs the length of the answer's first code block in bytes. Code Blocks There are three different ways of formatting ...
1
vote
1answer
377 views

Write an xkcd feed bot

The new xkcd feed bot room gave me an idea for a simple challenge. Your code will have to monitor the xkcd website and output all the new comics to the user. Specs When first run it should just sit ...
5
votes
1answer
244 views

Exploring 10-Rep Questions

Related Introduction As it happens, someone put forward the idea that, since PPCG has graduated, up votes on questions should be worth 10 rep. As a result, I started wondering how much rep I would ...
11
votes
2answers
354 views

What's on the TV?

Challenge Write a program which, using the XML data from the site here, display the name of the programme which is currently showing on BBC 1. Information All times are given at London time (GMT+1 ...
18
votes
23answers
2k views

Quick Golf: The Gold Leader

Challenge Using data from the API here, output the names of the three countries with the most Olympic gold medals at the 2016 Rio Olympic Games (i.e. the first element of the returned list). For ...
26
votes
14answers
1k views

Automate the OEIS

We see a lot of challenges here asking for a function to create a sequence from the OEIS. While these challenges are fun, as a programmer I see an opportunity for automation. Your challenge is to ...
15
votes
5answers
1k views

Leave a Comment

Task: Make a program that leaves a comment on this question. The content should be 1234567890123456. Edits: You may leave your usernames and passwords as ...