musehd / multidefine Goto Github PK
View Code? Open in Web Editor NEW๐ Compiles the definitions of multiple words into a single defintions list.
License: MIT License
๐ Compiles the definitions of multiple words into a single defintions list.
License: MIT License
The current formatting of words is quite inconsistent, adding spaces for some results, but not for others,
I believe this is because different sources have different formatting. This results in unaligned output, as shown:
This should be easy to fix by stripping the data collected, removing spaces and/or newlines and making sure that all of them are aligned.
Add searching from other drivers to make it more compatible and accessible on other platforms that don't have Chrome Installed
Definitions often break when searching for specific phrases due to google's new design.
Try searching using id and/or use next siblings in selenium to make sure that the right element is being selected and displayed
update.py gets the required zip file and extracts it but doesn't replace the old driver. So I updated with the new driver in #8 . So do check it !
One of the major problems right now is performance. The program has to go through each step for each of the words, before it moves on to the next one.
I've wanted to look into async calls but haven't gotten around to doing it. The current code will most likely need to be structured, as the order of operations needs to be taken into account. i.e. The program should only retrieve the definition for a word from one source, rather than getting definitions from several sources. Ideally, it should also detect how much additional load is being put on the system and add threads accordingly, allowing for more performance as well as accessibility.
If anyone is interested in implementing this, please let me know.
Currently, there's a single function called get_ans()
which is not ideal from a development perspective.
It would be worth breaking up the statements in the try
and except
blocks into separate functions to make it easier to maintain and debug.
When the definition for a word is not able to be obtained, it adds it to the list of failed words. When the program is re-run by pressing any key, the list does not get cleared and the failed words are stored in the list for the rest of the session. Should be easy to fix by clearing the list every time the user wants to rerun the program.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.