Return True if link rel attribute has nofollow type
(rel: str | None)
| 161 | |
| 162 | |
| 163 | def rel_has_nofollow(rel: str | None) -> bool: |
| 164 | """Return True if link rel attribute has nofollow type""" |
| 165 | return rel is not None and "nofollow" in rel.replace(",", " ").split() |
| 166 | |
| 167 | |
| 168 | class SupportsFromCrawler(Protocol[_T_co, _P]): |
searching dependent graphs…