Navigating the DOM with parentNode, previousSibling,nextSibling, firstChild, and lastChild

Navigating the DOMSometimes it is not convenient to grab the specific element you want while you’re scraping a web page.  In this tutorial I walk through how to use parentNode, previousSibling,nextSibling,firstChild and lastChild. Continue reading

Detecting Carrier Type, Company and Location from Phone Number

Lookup logo with an orange magnifying glass replacing the letter o, representing phone number lookup servicesDetecting Carrier Type, Company and Location from Phone Number

I was talking to a company today that does “voicemail drops” (so they don’t actually call you, they just drop a message into your voicemail.

We were discussing how nice it would be if you could know who the carrier was and/or where the respondent was located.

I mentioned that I’d learned some years ago that the prefix / Exchange was tied to a given carrier and that we should be able to reverse-engineer the information pretty easily.

In this video I walk through how to automate the process and, quickly ,extract the information from the web page.

Here is the article I mentioned during the video and below is the video and script I wrote  (I realized after recording the video I could have done w/o the loop.  Take a look at the script below…

Video Walk Through: Detecting Carrier Type, Company and Location from Phone Number

Detecting Carrier Type, Company and Location from Phone Number
Use the following for a webpage post:

Use Fiddler to monitor network traffic

Use Fiddler to monitor network trafficBeing able to easily monitor your network traffic is very helpful when working with APIs as well as Web Scraping.

In these two videos I demonstrate how to use Fiddler to monitor network traffic.  Fiddler is a great, free, tool that can help you see what traffic is going on behind the scenes from browsers, programs, apps, and AutoHotkey.  FYI- If you don’t care to use Fiddler / an external tool, a lot of this can be done with the developer tools inside a browser however they are somewhat limited in functionality.  I’ve tried other network monitoring tools but they are ridiculously complex.

Use Fiddler to monitor network traffic

Intro to using Fiddler to peek at traffic

Use AutoHotkey to easily clear network traffic in Fiddler

;*********************Clear traffic in Fiddler   Need to uncomment**********************************
;~ #IfWinActive ahk_exe Fiddler.exe  ;Uncomment this if you want to only do it when Fiddler is Active
^+c:: ;Hotkey to clear traffic
ControlFocus,WindowsForms10.SysListView32.app.0.2bf8098_r6_ad12 ;Control where Traffic is (must be active)
Send ^x ;Clear Traffic
return
;~ #IfWinActive ;Uncomment this if you uncommend the above #IfWinactive

 

 

 

Using Filters in Fiddler to clean-up what Fiddler is tracking