[GH-ISSUE #1163] Bug: ...AttributeError: module 'archivebox' has no attribute 'ArchiveBox' #2228

Closed
opened 2026-03-01 17:57:29 +03:00 by kerem · 4 comments
Owner

Originally created by @me-suzy on GitHub (Jun 19, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1163

I get this error:

Traceback (most recent call last):
  File "D:\archivebox.io 2.py", line 7, in <module>
    archivebox = archivebox.ArchiveBox()
AttributeError: module 'archivebox' has no attribute 'ArchiveBox'

after I run thins CODE:

import archivebox

# Get the URL of the website page that you want to index.
url = "https://neculaifantanaru.com"

# Create an ArchiveBox object.
archivebox = archivebox.ArchiveBox()

# Index the website page.
archivebox.add(url)

# Save the index.
archivebox.save()
Originally created by @me-suzy on GitHub (Jun 19, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1163 I get this error: ``` Traceback (most recent call last): File "D:\archivebox.io 2.py", line 7, in <module> archivebox = archivebox.ArchiveBox() AttributeError: module 'archivebox' has no attribute 'ArchiveBox' ``` after I run thins CODE: ``` import archivebox # Get the URL of the website page that you want to index. url = "https://neculaifantanaru.com" # Create an ArchiveBox object. archivebox = archivebox.ArchiveBox() # Index the website page. archivebox.add(url) # Save the index. archivebox.save() ```
kerem closed this issue 2026-03-01 17:57:29 +03:00
Author
Owner

@pirate commented on GitHub (Jun 20, 2023):

There is no archivebox.ArchiveBox object, we don't have anything like that in the codebase. where did you find this code snippet?

<!-- gh-comment-id:1598110316 --> @pirate commented on GitHub (Jun 20, 2023): There is no archivebox.ArchiveBox object, we don't have anything like that in the codebase. where did you find this code snippet?
Author
Owner

@me-suzy commented on GitHub (Jun 20, 2023):

I did it myself, but I don't know Python at all. That's why I think it gives an error.

Can you write me the code to help me index the blog?

<!-- gh-comment-id:1598228557 --> @me-suzy commented on GitHub (Jun 20, 2023): I did it myself, but I don't know Python at all. That's why I think it gives an error. Can you write me the code to help me index the blog?
Author
Owner

@pirate commented on GitHub (Jun 21, 2023):

If you enter the archivebox shell it'll show you how to use the API. There are also docs on https://docs.ArchiveBox.io

Essentially you want from archivebox.main import add and then add(...).

<!-- gh-comment-id:1599783013 --> @pirate commented on GitHub (Jun 21, 2023): If you enter the `archivebox shell` it'll show you how to use the API. There are also docs on https://docs.ArchiveBox.io Essentially you want `from archivebox.main import add` and then `add(...)`.
Author
Owner

@pirate commented on GitHub (Jan 19, 2024):

Closing as stale

<!-- gh-comment-id:1899641763 --> @pirate commented on GitHub (Jan 19, 2024): Closing as stale
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2228
No description provided.