---
title: "Furqan Ashraf (@jfreaks) | Hashnode"
description: "We are small team, who loves to code. Read the latest articles by Furqan Ashraf on Hashnode."
url: "https://hashnode.com/@jfreaks"
---

@jfreaks

# Furqan Ashraf

@jfreaks · Lahore, Pakistan · Joined August 2025

We are small team, who loves to code.

[Website](https://jfreaks.com/)

## Comments

[Marking a pollutant UNAVAILABLE instead of quietly turning None into 0.0 is the right call. Plenty of AQI dashboards get this wrong, and it matters more once an LLM is reading the numbers. Two ideas that follow from the same "data honesty" principle: 1. Say "modelled" where the data is modelled. You mention the Open-Meteo Air Quality API is backed by Copernicus CAMS and global models. That makes these grid estimates, not readings from a monitor on a particular street. That's fine for the 24h window logic, but the timestamp strip and the LIVE AIR QUALITY CONTEXT block could say "modelled estimate". Otherwise Gemini may write "PM2.5 measured near you is 4x the WHO limit", which goes further than the data does. 2. A fallback source for the network / api\_error case. Right now a failed fetch keeps the last snapshot, which is honest but goes stale during a bad smog day, when people check most. A second provider behind the same AirQualitySnapshot keeps it live. The APIFreaks Air Quality API returns both us\_aqi and european\_aqi plus the same pollutant fields you already chart (PM2.5, PM10, NO₂, CO, O₃, SO₂, dust, AOD), so the mapping is small: import requests def fetch\_fallback(lat: float, lon: float, api\_key: str) -> dict: r = requests.get( "https://api.apifreaks.com/v1.0/weather/air-quality", params={"lat": lat, "long": lon}, headers={"X-apiKey": api\_key}, timeout=10, ) r.raise\_for\_status() cur = r.json()\["current"\] return { "us\_aqi": \_safe\_float(cur.get("us\_aqi")), "european\_aqi": \_safe\_float(cur.get("european\_aqi")), "pm2\_5": \_safe\_float(cur.get("pm2\_5")), "pm10": \_safe\_float(cur.get("pm10")), # ...same \_safe\_float guards for the rest } It also accepts ip=, which is a simple way to pre-select a sensible default city in the sidebar on first load. Whichever provider served the data, put its name in the source label on the timestamp strip. That way users and the AI briefing both know where the numbers came from.](https://hashnode.com/posts/building-airaware-ai-how-i-built-an-urban-air-quality-assistant-with-streamlit-open-meteo-and-google-gemini/6afda65e7dee35ce60525809/comment/6b053273f1c39022cd1068c9)

Comment · Article · 8h ago · [Building AirAware AI: How I Built an Urban Air Quality Assistant with Streamlit, Open-Meteo, and Google Gemini](https://hashnode.com/posts/building-airaware-ai-how-i-built-an-urban-air-quality-assistant-with-streamlit-open-meteo-and-google-gemini/6afda65e7dee35ce60525809)

[The max\_steps cap in scroll\_to\_bottom is a good detail. Infinite-scroll pages are where most homemade full-page scripts hang. There's one gap left after scrolling. A lazy image can have started loading but not finished decoding by the time you scroll back to the top and capture, so you still get the occasional grey box. Waiting for the images to actually finish closes most of that: scroll\_to\_bottom(page) page.wait\_for\_function( "Array.from(document.images).every(img => img.complete && img.naturalWidth > 0)", timeout=10000, ) page.screenshot(path=output, full\_page=True) (Wrap it in the same PlaywrightTimeout try/except you already use for networkidle, because one broken image URL shouldn't fail the whole capture.) Cookie banners are the other common problem in full-page shots. page.add\_style\_tag() with a few known banner selectors set to display:none is the cheap fix. For the "hundreds on a schedule" case from your intro, running Chromium yourself becomes most of the work: memory, timeouts, retries, and keeping the browser build up to date. At that point a hosted endpoint with the same options may be simpler. The APIFreaks Website Screenshot API maps closely to the flags in your webshot.py: import requests r = requests.get( "https://api.apifreaks.com/v1.0/screenshot", params={ "url": "https://example.com", "full\_page": "true", "lazy\_load": "true", # does the scroll-through for you "scroll\_delay": 150, # same idea as your pause\_ms "no\_cookie\_banners": "true", "dark\_mode": "true", "retina": "true", "file\_type": "PNG", "output": "json", }, headers={"X-apiKey": API\_KEY}, timeout=120, ) print(r.json()\["screenshot"\]) # hosted file URL A basic capture costs 50 credits and new accounts start with 10,000, so you can test a batch before deciding whether to keep running Playwright yourself.](https://hashnode.com/posts/how-to-take-screenshots-in-python-full-screen-full-page-and-custom-settings-x23fr/6afd4aad6125e2871b343105/comment/6b053222bd953dca395ff81c)

Comment · Article · 8h ago · 1 · [How to Take Screenshots in Python: Full Screen, Full Page, and Custom Settings](https://hashnode.com/posts/how-to-take-screenshots-in-python-full-screen-full-page-and-custom-settings-x23fr/6afd4aad6125e2871b343105)

[The trek visibility bug points at the multi-country fix you're leaving open. A trek's end date belongs to the trek's location, not to the user or the server. If you ever add treks in Nepal or Bhutan, hardcoding +05:30 gives you the same bug in a new form. Nepal is +05:45, which is exactly the kind of offset a hardcoded value gets wrong without anyone noticing. Storing an IANA zone on each trek row, looked up once from the trailhead coordinates when the trek is created, lets your AT TIME ZONE fix take it from the row instead of a constant: GET https://api.ipgeolocation.io/v3/timezone?apiKey=KEY&lat=27.9881&long=86.9250 → time\_zone.name: "Asia/Kathmandu" Then the query is AT TIME ZONE trek.tz, and the same column handles DST for anything outside South Asia. I use the timezone API for that lookup since it accepts coordinates, a place name, or an IP. The IP option is handy for defaulting a user's display zone at signup.](https://hashnode.com/posts/the-timezone-bug-that-moved-my-bookings/6abfc151b37b5c733b00cfc9/comment/6b03db7bb5a517113d34e216)

Comment · Article · 1d ago · [My Laptop Was in India, My Server Was in UTC, and My Bookings Were in Yesterday](https://hashnode.com/posts/the-timezone-bug-that-moved-my-bookings/6abfc151b37b5c733b00cfc9)

[For the open question of how the passwords leaked: do you still have the SASL auth logs from before you added source binding? The IPs that logged in as those three service accounts can tell you a lot. If they're all residential-proxy or VPN exits in countries your apps never run from, that points to credential stuffing or a leaked config being used from a proxy network. If one of them is a datacenter IP close to your own infrastructure, look at the Roundcube/PHP 7.4 box first. Running them through an IP security lookup (is\_residential\_proxy, is\_vpn, is\_known\_attacker, ASN) takes a few minutes. The same check also works as a cheap pre-auth layer for the human mailboxes, which don't get the strict per-account IP binding the service accounts now have.](https://hashnode.com/posts/self-hosted-mail-server-spam-relay-haraka-plugins/6afd4d95e15f11d714459f20/comment/6b03db5263d5248e8034c6d8)

Comment · Article · 1d ago · [25,000 spam emails a day from our own mail server: how we fought back when the free tier couldn't](https://hashnode.com/posts/self-hosted-mail-server-spam-relay-haraka-plugins/6afd4d95e15f11d714459f20)

[The line about re-registration ("some registries reset the creation date... some don't") points at a related trap: an old creation date doesn't mean the same owner. For gTLDs like .com, a domain sold on the aftermarket or transferred before it expires keeps its original creation date. So a "since 2010" domain could have changed hands last month and the RDAP registration event would still say 2010. When age is part of a trust decision, I check three things in the historical WHOIS record as well: When the registrant org/email last changed When the nameservers last moved (a jump to a bulk parking or cheap DNS host is a common sign of a sale) Whether there's a gap in the records, which usually means it dropped and was re-registered That's a good complement to the Wayback check you mention: Wayback shows the content changed, and the WHOIS history shows when it changed hands.](https://hashnode.com/posts/domain-age-what-it-tells-you-about-a-website-and-what-it-doesn-t/6adf4f565bb6fa9a24a4c794/comment/6b03dab5b5a517113d34d8af)

Comment · Article · 1d ago · [Domain Age: What It Tells You About a Website (and What It Doesn't)](https://hashnode.com/posts/domain-age-what-it-tells-you-about-a-website-and-what-it-doesn-t/6adf4f565bb6fa9a24a4c794)

[Cloaking breaks scanner-based detection, but it can't hide the domain registration. The cloaker can show bots a clean page, yet secure-examplebank-login.com still has to show up in a zone file and a WHOIS record before any of the canonical-tag or hitbot work starts. That gives you a window, often days, before the page ever reaches the SERP you're watching. Pairing your SERP alerts with brand-lookalike domain monitoring (brand + "login"/"secure"/"vip", homoglyphs, other TLDs) means some of those 500 takedowns can be filed while the domain is still parked, and a parked domain can't send any traffic.](https://hashnode.com/posts/how-phishing-exploits-search-seo-poisoning-and-cloaking/6aedeeac62776a1b641c1d64/comment/6b03d5d36a57afb82b67c120)

Comment · Article · 1d ago · [How Phishing Exploits Search: SEO Poisoning and Cloaking](https://hashnode.com/posts/how-phishing-exploits-search-seo-poisoning-and-cloaking/6aedeeac62776a1b641c1d64)

["Five of those servers used 30 bot names between them" is the most telling detail here. Reverse DNS works for the Googlebot claims, but it doesn't help with the ClaudeBot or ChatGPT-User spoofs, and per-vendor range lists drift over time. A quicker way to rerun this analysis is to dedupe the IPs from the log and send them all through one bulk call that tells you, per IP, whether it's a verified crawler and whose cloud it's on: awk '{print $1}' access.log | sort -u | jq -R . | jq -s '{ips: .}' > ips.json curl -s -X POST "https://api.ipgeolocation.io/v3/security-bulk?apiKey=$KEY&fields=security.is\_known\_good\_bot,security.bot\_operator\_name,security.is\_cloud\_provider,security.cloud\_provider\_name" \\ -H 'Content-Type: application/json' -d @ips.json Any IP where the user agent claims a crawler but is\_known\_good\_bot is false and cloud\_provider\_name is set is one of your fakes, whichever of the 30 names it used. The IP security APItakes up to 50k IPs per request, so two weeks of logs is a single call. I'd also like to know whether the .env probing started from the same five IPs or moved to new ones after the 403s.](https://hashnode.com/posts/what-two-weeks-of-nginx-logs-told-me-about-ai-crawlers-and-fake-googlebots/6afc21ea39ff3ff684f8e5b9/comment/6b0018079f047d00478c5903)

Comment · Article · 4d ago · [What two weeks of nginx logs told me about AI crawlers and fake Googlebots](https://hashnode.com/posts/what-two-weeks-of-nginx-logs-told-me-about-ai-crawlers-and-fake-googlebots/6afc21ea39ff3ff684f8e5b9)

[That naming pattern is the most useful indicator in the list: join + {connect, hire, quest, thetalent, theteam} across .cfd, .info and .works. Static IOCs go stale as soon as the next batch is registered, but the pattern doesn't. Have you tried watching for it at registration time? A daily keyword filter over a newly registered domains feed, something like ^join(the)?(talent|team|hire|quest|connect) limited to those three TLDs, would probably catch the next set before the Calendly clone is even deployed. Since the post doesn't have registrar or creation dates yet, pulling WHOIS for the 11 known ones would also show whether they were registered in a single batch. Batch registrations usually mean the same registrar account, which is worth including in the abuse report.](https://hashnode.com/posts/fake-calendly-meta-careers-phishing-facebook-google-en/6aebffee97c3d3acd741e78b/comment/6b0017a0d6ec62877fd83bbc)

Comment · Article · 4d ago · [A Fake Meta Interview Slot: Cloned Calendly Pages That Take the Password and the 2FA Code in Real Time](https://hashnode.com/posts/fake-calendly-meta-careers-phishing-facebook-google-en/6aebffee97c3d3acd741e78b)

[On your question about filling a gap versus inventing an answer: I'd say data from a named source with a timestamp is filling the gap. Guessing from a neighbouring park is inventing. Your "unknown, not zero" rule already puts you on the right side. One thing I'd look for as a visitor is weather on each park page. You already have coordinates from the NPS data and a daily GitHub Action, so it's one more loop in the same job: 62 lat/lon calls, cached into the page data. Air quality is worth showing for the western parks in fire season, and sunrise/sunset is what photographers check first. If you'd like those three on one key, APIFreaks has forecast, air quality and astronomy endpoints that all take lat/lon: https://apifreaks.com/api/weather-forecast. The free credits are enough to test it on all 62.](https://hashnode.com/posts/i-built-a-national-parks-guide-with-63-parks-and-only-62-pages/6af74e74caa07503df421cc8/comment/6afd9849640c299a00c31c77)

Comment · Article · 6d ago · [I Built a National Parks Guide With 63 Parks and Only 62 Pages](https://hashnode.com/posts/i-built-a-national-parks-guide-with-63-parks-and-only-62-pages/6af74e74caa07503df421cc8)

[On your question about filling a gap versus inventing an answer: I'd say data from a named source with a timestamp is filling the gap. Guessing from a neighbouring park is inventing. Your "unknown, not zero" rule already puts you on the right side. One thing I'd look for as a visitor is weather on each park page. You already have coordinates from the NPS data and a daily GitHub Action, so it's one more loop in the same job: 62 lat/lon calls, cached into the page data. Air quality is worth showing for the western parks in fire season, and sunrise/sunset is what photographers check first. If you'd like those three on one key, APIFreaks has forecast, air quality and astronomy endpoints that all take lat/lon: https://apifreaks.com/api/weather-forecast. The free credits are enough to test it on all 62.](https://hashnode.com/posts/how-do-you-verify-email-addresses-in-python-syntax-mx-and-smtp-checks/6afd3fc7d8a157f6bb92821e/comment/6afd97996bb10234cd82b2e6)

Comment · Article · 6d ago · [How Do You Verify Email Addresses in Python (Syntax, MX, and SMTP Checks)?](https://hashnode.com/posts/how-do-you-verify-email-addresses-in-python-syntax-mx-and-smtp-checks/6afd3fc7d8a157f6bb92821e)
