{"version":"1.0","type":"rich","title":"파이썬으로 웹 크롤러 만들기_4장_097쪽 예제 전체 코드","description":"This example demonstrates a web crawler that traces Wikipedia article revision histories and maps contributor IP addresses to country codes, printing each IP and its originating country. The code uses Python’s `urllib.request` to fetch pages, BeautifulSoup to parse HTML links and extract anonymous user IPs from the `mw-anonuserlink` class, and the freegeoip.net API to geolocate each IP via JSON responses. It randomly selects new article links from the parsed body content to continue the crawl, filtering out non-article URLs with a regex pattern.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-477c44dcc69fb507bbb532ba29192b26?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}