This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"created_time":"2015-09-30T05:01:46+0000","message":"there's this project that I really need all of your help and input on. \n\nWhat are some micro aggressions you've ever experienced?\n\nIf you feel more comfortable PMing me, please do so as well, you have my complete support and confidentiality :)","actions":[{"name":"Like","link":"https:\/\/www.facebook.com\/groups\/LadiesStormHackathons\/permalink\/1639069169681491\/"},{"name":"Comment","link":"https:\/\/www.facebook.com\/groups\/LadiesStormHackathons\/permalink\/1639069169681491\/"},{"name":"Create Group Chat","link":"https:\/\/www.facebook.com\/groups\/LadiesStormHackathons\/"}],"comments":{"data":[{"id":"1639069766348098","from":{"name":"Hallie Lomax","id":"10204765677278720"},"message":"I remember going to a hackathon and walking up to say hi to a recruiter from a company that I'd interned at the year before. She assumed I was a business business school student, who'd gone through one of their non-technical programs.","can_remove":false,"created_time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
sites = get_sites_from_db() | |
for s in sites: | |
try: | |
r = requests.head(s) | |
if r.status_code in [404,500]: | |
remove_site_from_db(s) | |
except Exception: |
NewerOlder