---
title: "Discussion on \"[Python Debugging] Beautiful Soup Error - AttributeError: 'NoneType' object has no attribute 'text'\" | Hashnode"
description: "Discussion on \"[Python Debugging] Beautiful Soup Error - AttributeError: 'NoneType' object has no attribute 'text'\". The AttributeError occured because div does not exist in soup variable. So, why does soup not have div? It’s because the web server refused my request."
url: "https://hashnode.com/posts/beautifulsoup-debugging-none-type/67a6e5a39e7c09ad9b0552c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[Python Debugging\] Beautiful Soup Error - AttributeError: 'NoneType' object has no attribute 'text'](https://jaylog.hashnode.dev/beautifulsoup-debugging-none-type?utm_source=hashnode&utm_medium=feed)

The AttributeError occured because div does not exist in soup variable. So, why does soup not have div? It’s because the web server refused my request.

Feb 8, 2025 · 2 min read · jaylog.hashnode.dev  
Read the article

-   [#beautifulsoup](https://hashnode.com/tag/beautifulsoup)
-   [#python](https://hashnode.com/tag/python)
-   [#web-crawling](https://hashnode.com/tag/web-crawling)
-   [#crawler](https://hashnode.com/tag/crawler)
-   [#attributeerror](https://hashnode.com/tag/attributeerror)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Lim Woojae](https://hashnode.com/@jaylog)

@jaylog · Sydney

  
[View profile](https://hashnode.com/@jaylog)

Computer Science @UNSW

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
