Introduction
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!
Copyright
- Author: Airscker
- Last Edited Time: 2022-7
- Latest Edition: 22.3.1.2
- Open source project. Copyright (C) Airscker, airscker@gmail.com, Mozilla Public License Version 2.0
Basic steps of coding on IDE
Here we give you all the steps and references for build your first engine
Preparations
-
For Python
Before you import code into our project, you need to download the project in this way:
pip install SuperMiner
- For Browser
- Now you need to install Chrome browser(this project only support chrome currently).
- Secondly get your chrome's edtion number in Settings(tab 'About Chrome', such as 100.0.4896.88).
- Then download chrome driver according to your edition number here.
- Move the webdriver.exe into the Scripts root path of python, such as: C:\Python\Python39\Scripts\
Import
wait until all download threads executed, then open your project, type in:
from SuperMiner import SMiner as SM
Start your first engine
Here we show the basic steps to download Hello world images
- Initialize your engine
Hello_engine=SM.SuperMiner(url='https://cn.bing.com/images/search?q=Hello+world')
- Start miner engine
Hello_engine.MineEngine()
- Scroll the page to get more images
SM.Basic_Actions(engine=Hello_engine.engine,Obj_index=-2,send_keys=False,rollpage=True)
- Get the attributes of the images
Attr=Hello_engine.Attributes('src',Hello_engine.Objects(Class='mimg'))
- Download Images
Hello_engine.Download(Attr,data_type='img')
- Close engine
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
Metadata
Release files for SuperMiner 22.3.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SuperMiner-22.3.1.2.tar.gz | 9.8 kB | Without provenance | Details for SuperMiner-22.3.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SuperMiner-22.3.1.2-py3-none-any.whl | Python 3 | none | any | Details for SuperMiner-22.3.1.2-py3-none-any.whl |
Total release size: 18.9 kB
Release files / SuperMiner-22.3.1.2.tar.gz
| Download URL | SuperMiner-22.3.1.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e5feb7ed0c2d6c7ee5298cb3f31a674614559d14580f83c161ed7e05501ba16
|
|
BLAKE2b-256 checksum How to use checksums |
e1110fc1078f16a9227354009351fa07b1875987d09b638939a19b9491bd4ecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / SuperMiner-22.3.1.2-py3-none-any.whl
| Download URL | SuperMiner-22.3.1.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b619c024d7642a14701da83e7bd27a62d18e47c8347c10f123f78c276e48f3b0
|
|
BLAKE2b-256 checksum How to use checksums |
58ac5ba1d228e35678b6d64e258bc1b380aaf64328eeb92a1fb7831ae1eb1ece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for SuperMiner 22.3.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.