GithubHelp home page GithubHelp logo

Comments (2)

laughingclouds avatar laughingclouds commented on May 31, 2024

Alright, it seems we won't need to open the accordian.
Once we find the div elements that has the chapter links we can input their list to this function

def get_hrefList(divList: list[WebElement]) -> list[str]:    
    hrefList = []
    for divElement in divList:
        aList: list[WebElement] = divElement.find_elements(By.TAG_NAME, "a")
        hrefList.extend([a.get_attribute("href") for a in aList])
    return hrefList

Also, we need to switch this to "Oldest". Because then the links will be saved with the current index, i.e., prologue/chapter 0 at index 0, chapter 1 at index 1 and so on. [Too much trouble, we can simply reverse the list]

image

from scrapia-world.

laughingclouds avatar laughingclouds commented on May 31, 2024

Done
#4 (comment)

At the end, I had to open the accordians for the script to work. But yes, it's done.
At least the part which creates the profile is done. There's more work to do with the profiler.

Commit where it's done 4c06df8.

from scrapia-world.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.