https://github.com/bitwise-01/atomic
A proxy framework
https://github.com/bitwise-01/atomic
framework proxy
Last synced: 8 months ago
JSON representation
A proxy framework
- Host: GitHub
- URL: https://github.com/bitwise-01/atomic
- Owner: Bitwise-01
- License: mit
- Created: 2018-05-11T03:35:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T03:36:14.000Z (almost 8 years ago)
- Last Synced: 2025-04-09T20:48:05.268Z (12 months ago)
- Topics: framework, proxy
- Language: Python
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Atomic
A proxy framework
### Defaults
- **size:** *50*
- **threads:** *50*
- **minSpeed:** *50*
- **protocol:** *http*
### Limits
- **size:** *None*
- **threads:** *50*
- **minSpeed:** *None*
- **protocol:** *http, socks4, socks5*
### Paramerless atomic object
```python
from atom import Atom
size = 20 # 50 is the default for the maximum size
atom = Atom()
atom.start() # start collecting proxies
while atom.size < size: # wait for all proxies
try:pass
except KeyboardInterrupt:break
atom.stop() # stop collecting proxies
# display
while atom.size:
proxy = atom.proxy
num = (size - atom.size)
print ('[{}]: {}'.format(num, proxy))
```
### Parameters
```python
from atom import Atom
# electron shells
size = 80 # the maximum amount of proxies to collect
# minimal orbital speed of each electron
minSpeed = 50 # the minSpeed of each proxies
atom = Atom(size=size, minSpeed=minSpeed)
# start ionization process
atom.start() # start collecting proxies
# wait for the atom to ionize
while atom.size < size: # wait for all proxies
try:pass
except KeyboardInterrupt:break
# stop ionization process
atom.stop() # stop collecting proxies
# start fission process
while atom.size:
proxy = atom.proxy
num = (size - atom.size)
print ('[{}]: {}'.format(num, proxy))
```