Setting up a custom alert system for changes to a URL

InterviewQs

Setting up a custom alert system for changes to a URL

Python Data Structures External Dataset

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose your business needs to be alerted when a competitor posts to their public Facebook page. Specifically, they've asked you to alert them whenever a new post (of any type) is created by the page. You've tried to get notifications working, but it seems FB has implemented algorithms that often suppress page push notifications despite turning them on.

Given this problem statement, implement a simple program that will check a Facebook page url every few minutes and print out when a new post has been created (of course instead of printing we'd probably want a text/email, but for the purposes of this question we'll keep it simple). You can use the following page as an example -- note that it's accessible even without a Facebook account.

Our solution will be written in Python for premium users.

In an interview scenario you may only be asked hypothetically how you might set up such a system, and what potential pitfalls to look out for, but implementing this short function is good practice. Additionally, you may find this personally useful for monitoring specific site changes, since the structure can apply to any URL.



 

You’ve accumulated 372 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe

Key phrases

Older messages

Calculating the Root Mean Squared Error (RMSE) of a model

Monday, November 14, 2022

Python, Data Structures, RMSE, Arrays, InterviewQs Calculating the Root Mean Squared Error (RMSE) of a model Python Data Structures RMSE Arrays Forward this email to a friend or colleague and challenge

Precision, recall, and F-1 scores

Friday, November 11, 2022

Precision, Recall, F1 Score, Machine Learning, InterviewQs Precision, recall, and F-1 scores Precision Recall F1 Score Machine Learning Forward this email to a friend or colleague and challenge them to

Moving average trading strategy

Thursday, November 10, 2022

SQL, Database Querying, Window Function, Subquery, InterviewQs Moving average trading strategy SQL Database Querying Window Function Subquery Forward this email to a friend or colleague and challenge

Selecting computers for a company

Monday, November 7, 2022

Data Analysis, Python, Pandas, Data Manipulation, Data Visualization, External Dataset, Case Study, InterviewQs Selecting computers for a company Data Analysis Python Pandas Data Manipulation Data

Matrix multiplication using nested loops

Friday, November 4, 2022

Python, Data Structures, Algorithms, Matrix Multiplication, InterviewQs Matrix multiplication using nested loops Python Data Structures Algorithms Matrix Multiplication Forward this email to a friend

You Might Also Like

BetterDev #258 - Build an 8-bit computer from scratch and Home automation with ESP8266

Wednesday, May 1, 2024

Better Dev #258 Apr 30, 2024 Hi all, We come back with a new issue this week. If you like BetterDev, please help spead word out by refer to your friends. Buy me a coffee would be great too. Build an 8-

Interface Interference 👎

Wednesday, May 1, 2024

Amid the AI device dunking, should everything “just be an app”? Here's a version for your browser. Hunting for the end of the long tail • April 30, 2024 Interface Interference The problem

Some Tesla Supercharger jobs get a jolt

Tuesday, April 30, 2024

Plus: Amazon CodeWhisperer changes its name and Arc gets a Windows version View this email online in your browser By Christine Hall Tuesday, April 30, 2024 Welcome to TechCrunch PM, bringing you the

Relief From Tinnitus: Free Discovery Call!

Tuesday, April 30, 2024

Do you suffer from tinnitus or a ringing in your ears? 1 in 3 adults over the age of 65 will suffer from this condition and often don't know there are things you can do to help. Our friends at

WebAIM April 2024 Newsletter

Tuesday, April 30, 2024

WebAIM April 2024 Newsletter Read this newsletter online at https://webaim.org/newsletter/2024/april Feature Web Accessibility in the 2024 Presidential Campaigns WebAIM's John Northup ran the US

👀 Being More Productive on a Smaller Screen — How to Hide Games on Steam Family Sharing

Tuesday, April 30, 2024

Also: What to Expect From Apple's "Let Loose" Event, and More! How-To Geek Logo April 30, 2024 Did You Know The letter J is the only letter that makes no appearance on the Periodic Table.

PEP 686, Lazy Evaluation, Serverless Python, and More

Tuesday, April 30, 2024

PEP 686: Make UTF-8 Mode Default #627 – APRIL 30, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 686: Make UTF-8 Mode Default This Python Enhancement Proposal outlines making UTF-8 the default

Daily Coding Problem: Problem #1427 [Easy]

Tuesday, April 30, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an array and a number k that's smaller than the length of the array,

🎙 My advice for film + TV creatives on the AI wave

Tuesday, April 30, 2024

Learning AI fast + Karate Kid references ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Ranked | The Top 20 Countries in Debt to China 💸

Tuesday, April 30, 2024

The 20 nations featured in this graphic each owe billions in debt to China, often posing concerns for their economic future. View Online | Subscribe Presented by Voronoi: The App Where Data Tells the