This a project built for the SuperWebMiner, which is also a homework of my class. We can use this basic web miner frame to do some web miner works, such as downloading a large quantity of pictures etc. The goal of this project is to enable everyone to start his/her own super mine engine, and at the same time this project pushes me to comprised AI system closer. It would be great for you to give me suggestions on this project, all of us make it better and stronger!
Here we give you all the steps and references for build your first engine
For Python
Before you import code into our project, you need to download the project in this way:
pip install SuperMiner
For Browser
wait until all download threads executed, then open your project, type in:
xxxxxxxxxx
from SuperMiner import SMiner as SM
Here we show the basic steps to download Hello world images
xxxxxxxxxx
Hello_engine=SM.SuperMiner(url='https://cn.bing.com/images/search?q=Hello+world')
xxxxxxxxxx
Hello_engine.MineEngine()
xxxxxxxxxx
SM.Basic_Actions(engine=Hello_engine.engine,Obj_index=-2,send_keys=False,rollpage=True)
xxxxxxxxxx
Attr=Hello_engine.Attributes('src',Hello_engine.Objects(Class='mimg'))
xxxxxxxxxx
Hello_engine.Download(Attr,data_type='img')
xxxxxxxxxx
Hello_engine.engine.quit()
Now you are able to see the images downloaded in 'downloads' file folder, because the network may not be good enough, some images may be crashed, it's just no problem.
To get more details, please see Document, and command support is added since edition 22.2.0.0(R22.2.0.0), to get more details please see Command Support
2022-3-14
We go until we go wrong, then we keep on until we are right
For dream