educative.io_scraper: Unable to fetch authorid

@anilabhadatta I have freshly cloned the repo. did everything as said in readme file. And when I started auto scraper it gave following error ->

C:\Users\sense\OneDrive\Documents\user\educative.io_scraper\src\ScraperType\CourseTopicScraper\ScraperModules\ApiUtility.py:261: SyntaxWarning: invalid escape sequence '\s'
  """

                Educative Scraper (v3.9.6 Master Branch), developed by Anilabha Datta
                Project Link: https://github.com/anilabhadatta/educative.io_scraper/
                Check out ReadMe for more information about this project.
                Use the GUI to start scraping.
        
 2025-06-02 02:09:07,702 - INFO - HomeScreen - Creating Home Screen...
 2025-06-02 02:09:13,704 - INFO - StartScraper - StartScraper Initiated...
                            To Terminate, Click on Stop ScraperType Button

 2025-06-02 02:09:13,711 - INFO - CourseTopicScraper - CourseTopicScraper initiated...
 2025-06-02 02:09:13,711 - INFO - CourseTopicScraper - Started Scraping from Text File URL: https://www.educative.io/courses/grokking-the-behavioral-interview/why-prepare?showContent=true
 2025-06-02 02:09:13,711 - INFO - BrowserUtility - Loading Browser...
 2025-06-02 02:09:16,607 - INFO - BrowserUtility - saveWebSocketUrl called
 2025-06-02 02:09:16,611 - INFO - BrowserUtility - saveWebSocketUrl completed with devToolUrl: ws://127.0.0.1:9222/devtools/browser/f516e94d-1bf6-4e75-9dd5-7280fbb0d60e pid : 13860
 2025-06-02 02:09:16,613 - INFO - BrowserUtility - Browser Initiated
 2025-06-02 02:09:16,744 - INFO - ApiUtility - Getting Course url
 2025-06-02 02:09:17,785 - INFO - ApiUtility - Course Type Selector: //div[contains(@id, 'view-collection-article-content-root')]//a[contains(@href, '/courses/')]
 2025-06-02 02:09:17,873 - INFO - ApiUtility - Getting AuthorAndCollectionId
 2025-06-02 02:09:17,898 - INFO - ApiUtility - Found AuthorAndCollectionId {}
 2025-06-02 02:09:17,899 - INFO - ApiUtility - Could not find authorid, collectionid, trying to get Next Data
 2025-06-02 02:09:18,091 - INFO - BrowserUtility - Browser closed via websocket ws://127.0.0.1:9222/devtools/browser/f516e94d-1bf6-4e75-9dd5-7280fbb0d60e
 2025-06-02 02:09:18,133 - INFO - BrowserUtility - Deletion of files with prefix Singleton completed.
 2025-06-02 02:09:18,376 - INFO - BrowserUtility - Trying to terminate chrome.exe (PID 2584).
 2025-06-02 02:09:18,458 - INFO - BrowserUtility - Process chrome.exe (PID 2584) terminated successfully.
 2025-06-02 02:09:18,502 - INFO - BrowserUtility - Trying to terminate chrome.exe (PID 2736).
 2025-06-02 02:09:18,533 - INFO - BrowserUtility - Process chrome.exe (PID 2736) terminated successfully.
 2025-06-02 02:09:18,694 - INFO - BrowserUtility - Trying to terminate chrome.exe (PID 6520).
 2025-06-02 02:09:18,694 - INFO - BrowserUtility - Process chrome.exe (PID 6520) terminated successfully.
 2025-06-02 02:09:18,773 - INFO - BrowserUtility - Trying to terminate uc_driver.exe (PID 13860).
 2025-06-02 02:09:18,773 - INFO - BrowserUtility - Process uc_driver.exe (PID 13860) terminated successfully.
 2025-06-02 02:09:18,778 - ERROR - StartScraper - start: 25: CourseTopicScraper:start: 66: CourseTopicScraper:scrapeCourse: 99: ApiUtility:getAuthorAndCollectionId: 268: ApiUtility:getNextData: 225: Message: javascript error: Cannot read properties of undefined (reading 'textContent')
  (Session info: chrome=116.0.5845.96)
Stacktrace:
        GetHandleVerifier [0x00007FF6809B52A2+57122]
        (No symbol) [0x00007FF68092EA92]
        (No symbol) [0x00007FF6807FE3AB]
        (No symbol) [0x00007FF680802382]
        (No symbol) [0x00007FF680804063]
        (No symbol) [0x00007FF68086F214]
        (No symbol) [0x00007FF680856FDA]
        (No symbol) [0x00007FF68086EB82]
        (No symbol) [0x00007FF680856DB3]
        (No symbol) [0x00007FF68082D2B1]
        (No symbol) [0x00007FF68082E494]
        GetHandleVerifier [0x00007FF680C5EF82+2849794]
        GetHandleVerifier [0x00007FF680CB1D24+3189156]
        GetHandleVerifier [0x00007FF680CAACAF+3160367]
        GetHandleVerifier [0x00007FF680A46D06+653702]
        (No symbol) [0x00007FF68093A208]
        (No symbol) [0x00007FF6809362C4]
        (No symbol) [0x00007FF6809363F6]
        (No symbol) [0x00007FF6809267A3]
        BaseThreadInitThunk [0x00007FFB4D9D259D+29]
        RtlUserThreadStart [0x00007FFB4DFEAF78+40]


About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

@Ankitz007 @pritamay approved https://github.com/anilabhadatta/educative.io_scraper/pull/164 If there is any other issue please report and create PR is fix is ready

I am closing this issue now. Thanks for the help. @anilabhadatta @Ankitz007

This one’s easy. It’s this line that needs to be fixed.

https://github.com/anilabhadatta/educative.io_scraper/blob/v3-master/src/ScraperType/CourseTopicScraper/ScraperModules/SeleniumBasicUtility.py#L54

I haven’t dug deep for this. I just changed it to:

            cloudLabOrProjectSelector = self.selectors["CLOUDLAB"]

Because I didn’t need it. Maybe I’ll look on this tomorrow if time permits.