[GH-ISSUE #182] Running the program gets a 'CROME_USER_AGENT' error #3149

Closed
opened 2026-03-14 21:15:56 +03:00 by kerem · 2 comments
Owner

Originally created by @TheChiefMeat on GitHub (Mar 19, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/182

Running the program gets a 'CROME_USER_AGENT' error.

Traceback (most recent call last):
  File "./archive", line 15, in <module>
    from archive_methods import archive_link, _RESULTS_TOTALS
  File "/home/pi/radio/fm_transmitter-master/ArchiveBox/archivebox/archive_methods.py", line 12, in <module>
    from config import (
ImportError: cannot import name 'CHROME_USER_AGENT'

OS: Raspbian Jessie Lite
Python3 version: 3.5.3
Chrome version: Chromium 65.0.3325.181 Built on Raspbian , running on Raspbian 9.8
Wget version: GNU Wget 1.18

Originally created by @TheChiefMeat on GitHub (Mar 19, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/182 Running the program gets a 'CROME_USER_AGENT' error. ``` Traceback (most recent call last): File "./archive", line 15, in <module> from archive_methods import archive_link, _RESULTS_TOTALS File "/home/pi/radio/fm_transmitter-master/ArchiveBox/archivebox/archive_methods.py", line 12, in <module> from config import ( ImportError: cannot import name 'CHROME_USER_AGENT' ``` OS: Raspbian Jessie Lite Python3 version: 3.5.3 Chrome version: Chromium 65.0.3325.181 Built on Raspbian , running on Raspbian 9.8 Wget version: GNU Wget 1.18
kerem closed this issue 2026-03-14 21:16:01 +03:00
Author
Owner

@n0ncetonic commented on GitHub (Mar 19, 2019):

Sorry this is my fault on missing a file in my latest pull request. I'm issuing another pull request now.

For the time being feel free to add the following to config.py

CHROME_USER_AGENT =      os.getenv('CHROME_USER_AGENT',      'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36')

Add that underneath CHROME_HEADLESS

<!-- gh-comment-id:474476946 --> @n0ncetonic commented on GitHub (Mar 19, 2019): Sorry this is my fault on missing a file in my latest pull request. I'm issuing another pull request now. For the time being feel free to add the following to `config.py` ``` CHROME_USER_AGENT = os.getenv('CHROME_USER_AGENT', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36') ``` Add that underneath `CHROME_HEADLESS`
Author
Owner

@TheChiefMeat commented on GitHub (Mar 19, 2019):

Thanks, that seems to have fixed it :)

<!-- gh-comment-id:474477879 --> @TheChiefMeat commented on GitHub (Mar 19, 2019): Thanks, that seems to have fixed it :)
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#3149
No description provided.