Comments (2)
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]
from scrapia-world.
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)
- A few chapters won't download. HOT 2
- JSON files are not updating HOT 3
- Page source being saved before the content loads
- Update README.md
- Read this
- Formatting the saved pages HOT 2
- Code Quality HOT 2
- Redundant and Missing Text HOT 1
- dot-env dependency | password and email in json HOT 2
- Make it work for the new site kiddo! HOT 2
- can we switch to sqlite? HOT 3
- option to add novel information
- new login method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrapia-world.