How to Scrape Korean Websites Without Broken Hangul or Broken Rules

· Updated:

To scrape Korean websites well, solve two problems that generic guides skip: legacy Korean encodings (EUC-KR and CP949) that turn Hangul into mojibake, and the fact that many Korean sources offer official APIs or disallow bots in robots.txt. Start with the API if one exists, decode bytes deliberately, keep the request rate low and stay away from personal data. A South Korean IP helps when a site serves Korean visitors differently or refuses overseas traffic.

Korean IPv4 with unmetered traffic for polite crawls

Scrape Korean websites: start with the official sources

Before writing a crawler, check whether the data is already offered in a form you are allowed to use. In Korea it often is:

Data you wantOfficial routeNotes
Naver blog, news, cafe, shopping resultsNaver Search API (developers.naver.com)JSON results with a daily quota; search.naver.com's robots.txt disallows bots
Search trend dataNaver DataLab APIRelative trends, not volumes
Government and public-sector dataKorea's public data portal (data.go.kr)Thousands of datasets and APIs, many free with a key
Your own store's dataPlatform seller APIs, such as the Naver Commerce APICovers your listings and orders, not competitors

When scraping is still reasonable

Public pages with no API, such as notices, product specifications or published price lists, can be collected carefully if robots.txt and the site's terms allow it. Keep the scope narrow and the pace slow. Korean law protects personal data under the Personal Information Protection Act (PIPA), and the Unfair Competition Prevention Act lists unauthorized use of another company's data as unfair competition. Read our overview of whether scraping with proxies is legal; it is general information, not legal advice.

EUC-KR vs CP949: why Korean text breaks

Many modern Korean sites use UTF-8, but older portals, government pages, shopping malls built years ago and many iframes still use EUC-KR or its Microsoft extension CP949 (also called UHC or MS949). EUC-KR, based on the KS X 1001 standard, encodes 2,350 precomposed Hangul syllables. CP949 extends it to all 11,172 modern syllables. A page labelled EUC-KR is often really CP949, so decoding it strictly as EUC-KR fails on syllables such as 똠 or 쀍.

The second trap is in Python's requests. When a server sends Content-Type: text/html without a charset, requests falls back to ISO-8859-1 for response.text, so Korean bytes come out as Latin-1 garbage. The fix is to stop trusting response.text and decode response.content yourself.

A euc-kr decode function for Python that holds up

The function reads the declared charset from the header, then from a <meta> tag. Any Korean legacy label is decoded as CP949, because CP949 is a superset of EUC-KR. Otherwise it tries the declared encoding, then UTF-8, then CP949, and only replaces characters as a last resort. Trying UTF-8 before CP949 matters: CP949 can sometimes decode UTF-8 bytes without an error and give you the wrong text.

import re

KOREAN_LEGACY = {"euc-kr", "euc_kr", "ks_c_5601-1987", "ksc5601", "cp949", "ms949", "x-windows-949", "uhc"}

def declared_charset(resp):
    """Charset from the Content-Type header, else from a <meta> tag."""
    m = re.search(r"charset=([\w.:-]+)", resp.headers.get("Content-Type", ""), re.I)
    if m:
        return m.group(1).lower()
    m = re.search(rb"<meta[^>]+charset=[\"']?([\w.:-]+)", resp.content[:4096], re.I)
    return m.group(1).decode("ascii").lower() if m else None

def decode_korean(resp):
    charset = declared_charset(resp)
    if charset in KOREAN_LEGACY:
        # CP949 is a superset of EUC-KR, so it also decodes rare syllables
        return resp.content.decode("cp949", errors="replace")
    for enc in [c for c in (charset, "utf-8", "cp949") if c]:
        try:
            return resp.content.decode(enc)
        except (LookupError, UnicodeDecodeError):
            continue
    return resp.content.decode("utf-8", errors="replace")

Once decoded, store everything as UTF-8. Do not re-encode to EUC-KR for storage; you will lose the syllables EUC-KR cannot represent.

A polite crawler for Korean public pages

The crawler below reads robots.txt through the same proxy and treats a refused robots.txt as "disallow all". It honors Crawl-delay if one is set, otherwise waits five seconds between requests. It runs one request at a time, uses timeouts on every call and stops at the first 403 or 429. A refusal means slow down or stop, not switch IPs. For backoff patterns, see retry and backoff for scrapers.

import time
import urllib.robotparser
from urllib.parse import urlsplit

import requests
from bs4 import BeautifulSoup

PROXY = "http://USER:PASS@IP:PORT"
session = requests.Session()
session.proxies = {"http": PROXY, "https": PROXY}
session.headers.update({
    "User-Agent": "ResearchBot/1.0 (contact: [email protected])",
    "Accept-Language": "ko-KR,ko;q=0.9",
})

def robots_for(url):
    parts = urlsplit(url)
    rp = urllib.robotparser.RobotFileParser()
    resp = session.get(f"{parts.scheme}://{parts.netloc}/robots.txt", timeout=15)
    if resp.status_code in (401, 403):
        rp.disallow_all = True
    elif resp.ok:
        rp.parse(resp.text.splitlines())
    elif 400 <= resp.status_code < 500:
        rp.allow_all = True  # no robots.txt published
    else:
        rp.disallow_all = True  # server error: try again later
    return rp

URLS = ["https://www.example.co.kr/notice/1", "https://www.example.co.kr/notice/2"]
rp = robots_for(URLS[0])
agent = session.headers["User-Agent"]
delay = rp.crawl_delay(agent) or 5

for url in URLS:
    if not rp.can_fetch(agent, url):
        print("Disallowed by robots.txt:", url)
        continue
    resp = session.get(url, timeout=20)
    if resp.status_code in (403, 429):
        print("Refused with", resp.status_code, "- stopping")
        break
    html = decode_korean(resp)  # from the previous snippet
    title = BeautifulSoup(html, "html.parser").title
    print(url, resp.status_code, title.get_text(strip=True) if title else None)
    time.sleep(delay)
  • Identify yourself. A User-Agent with a contact address lets site owners reach you instead of blocking you.
  • Collect only what you need. Skip names, phone numbers, emails and user posts; under PIPA, collecting personal data creates obligations you probably do not want.
  • Render JavaScript only when needed. Many Korean shopping pages load prices with scripts; check the network tab for a public JSON endpoint the page itself uses, and respect the same limits.
  • Decode frames separately. An old EUC-KR iframe inside a UTF-8 page needs its own decode.

When a Korean IPv4 helps, and when it does not

Some Korean sites refuse overseas networks or show Korean visitors different content, so a crawler run from abroad may see nothing or the wrong thing. For those cases, ProxyV4 sells South Korea private IPv4: datacenter addresses with one tenant per IP for the whole term, and the same address while active and on renewal. A stable IP is also easier for a site owner to recognize and contact you about.

Each proxy supports HTTP(S) and SOCKS5, chosen per order as HTTP only, SOCKS5 only or both on one port, and arrives as ip:port:user:pass. IP whitelist login is also offered for up to three public IPv4 addresses, so your crawl servers can connect without credentials in config. Traffic is unmetered, so you are not billed per page. Start with one IP and test your target; per-IP prices are on the pricing page, and the South Korea proxy hub lists other Korean use cases.

Where it does not fit: ProxyV4 has no rotating, residential or mobile proxies in South Korea, and a proxy is not a way to get around robots.txt, rate limits, logins or identity checks. Some sites refuse datacenter ranges altogether. For Naver search data, use the Search API instead of a proxy. If a proxy cannot connect or shows the wrong location, the refund policy credits your balance.

Checking your output

Add a cheap test to every run: count Hangul characters (U+AC00 to U+D7A3) in each decoded page and flag pages where the count is zero or where the replacement character \ufffd appears. Either one usually means a wrong encoding guess, not a page with no Korean. Log the declared charset next to each URL, so you can spot sites that switched from EUC-KR to UTF-8 during a redesign.

Frequently asked questions

Should I decode Korean pages as EUC-KR or CP949?

Decode anything labelled EUC-KR as CP949. CP949 is a superset, so it handles the syllables EUC-KR lacks without breaking the rest.

Why does requests show garbled Korean text?

When the Content-Type header has no charset, requests uses ISO-8859-1 for response.text. Decode response.content yourself using the declared or detected charset.

Can I scrape Naver search results?

Naver's robots.txt for search.naver.com disallows automated agents at the time of writing. Use the Naver Search API for blog, news and other results.

How fast can I crawl a Korean site?

Follow any Crawl-delay in robots.txt; otherwise one request at a time with several seconds between them is a sensible default for small sites. Stop if the site refuses requests.

Do I need a Korean IP to scrape Korean websites?

Only for sites that refuse overseas traffic or serve Korean visitors differently. Test one private South Korean IPv4 before buying more.

Sources

Korean IPv4 with unmetered traffic for polite crawls

A private South Korean IPv4 for sites that serve Korea differently: HTTP(S) and SOCKS5, IP whitelist login for servers, same IP on renewal.

See Korea prices

Related articles

Use cases
Designing a scraper around a pool of dedicated IPs
A planning guide for data teams: size a pool of private static IPs, rotate them in your own code, pick IPv4, ISP or IPv6, and collect data responsibly.
Knowledge base
Is Web Scraping with Proxies Legal? What Actually Decides It
Is web scraping with proxies legal? A proxy does not change the answer. Learn which rules apply: terms of service, computer-misuse, copyright and privacy law.
Proxy setup
Python requests through an authenticated proxy, step by step
Send Python requests through an authenticated HTTP(S) proxy: build the proxies dict, attach it to a Session, encode odd passwords, rotate a list, check the IP.
Proxies by country
South Korea Proxies: Korean IPs for Naver, Coupang and Korean Servers
Buy a South Korea proxy: a static Korean IP used by you alone, private IPv4 for Naver SEO and Coupang research or static ISP for Korean accounts you keep.
IPV4 · south korea
South Korea Private IPv4 Proxy for Naver, Coupang and Game Servers
South Korea private IPv4 proxy: a dedicated, static Korean datacenter IP for Naver rank tracking, Coupang price checks, Kakao ad checks and Korean game servers.
Knowledge base
Using Cafe24 Admin IP Restriction When Your Team Works Abroad
Cafe24 admin IP restriction explained: Korea-only access, operator IP limits, how overseas teams keep access with a fixed IP, and how to avoid lockouts.
Knowledge base
How to Get a South Korean IP Address from Abroad
How to get a Korean IP address from abroad: VPN, Seoul cloud VM or static proxy, why Korean phone verification still applies, and setup for curl and browsers.
Knowledge base
How to Do Naver Rank Tracking When Your Team Is Outside Korea
Naver rank tracking that holds up: what to measure in Naver's block-based results, which data sources Naver allows, and how a Korean IP fits manual checks.
Free tools
Check proxies in bulk: status, exit IP and latency
Free online proxy checker: paste up to 100 ip:port:user:pass lines and see which proxies work, their exit IP and latency, plus what each failure result means.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.