algoritm - scrap all posts inline
2)
bin/scraper_worker
3) go to 3 folder
from imagehash import dhash
from iso8601 import parse_date
from PIL import Image as PIL_Image
cur_im1 = PIL_Image.open('/home/t/Desktop/videos/3/test.jpg')
cur_hash1 = str(dhash(cur_im1))
GO TO REDIS select 1
set 2f2b0b2b33232323 "380668111208"
4)
import os
import redis
path = '/home/t/Desktop/videos/images'
two_dir = os.listdir(path)
r = redis.StrictRedis(host="localhost", port=6379, charset="utf-8", decode_responses=True, db=0)
keys = r.keys('*')
redis_values_dict = dict()
for key in keys:
redis_values_dict[r.get(key)] = None
count = 0
for image in two_dir:
if image not in redis_values_dict:
os.remove('{}{}{}'.format(path, '/', image ))
count += 1
0.0
---
- Initial version
Metadata
Release files for xxx.scraper 0.94
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 |
|---|---|---|---|---|
| xxx.scraper-0.94.tar.gz | 7.1 kB | Without provenance | Details for xxx.scraper-0.94.tar.gz |
Release files / xxx.scraper-0.94.tar.gz
| Download URL | xxx.scraper-0.94.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37fd659a65bb8865fa46f2785145f88b38ac85f1cb91729305730170dac76696
|
|
BLAKE2b-256 checksum How to use checksums |
5750fa9bd3cb6c701b4dd1575f1de74250e4d0fc6c3ad47a7c9d93da7b3e3015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for xxx.scraper 0.94
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.