from dataclasses import dataclass
import itertools
-from urllib.parse import parse_qsl, urlencode, urlparse, urlunparse
+from urllib.parse import parse_qsl, urlencode, urljoin, urlparse, urlunparse
from typing import Iterable
for a in c.findChildren('a'):
if 'Next Post' in a.text and 'href' in a.attrs and isinstance(
a.attrs['href'], str):
- return a.attrs['href']
+ return urljoin(spec.url, a.attrs['href'])
return None
spec.log('Fetching HTML...\r')