효율적인 웹 크롤링 및 검색 결과 처리를 위한 라이브러리
Project description
Douzone-crawl
🔍 빠르고 쉬운 웹 크롤링을 위한 파이썬 라이브러리입니다. Google 검색 결과와 웹 페이지 콘텐츠를 손쉽게 추출하세요.
주요 기능
- Google 검색 결과 수집
- 검색 결과 페이지 내용 추출
- 검색 결과의 제목, URL, 날짜, 설명 정보 제공
- 결과 파일 저장 기능
설치 방법
pip install douzone_crawl
pip install requirements.txt
사용 방법
기본 사용 예시
import douzone_crawl
# 크롤러 생성
crawler = douzone_crawl.DouzoneCrawler(max_results=2)
# 검색 실행
results = crawler.crawl("더존비즈온")
# 결과 저장
crawler.save_to_json(results)
다중 검색어 사용 예시
import douzone_crawl
# 검색어 리스트
search_queries = ["더존비즈온", "ERP", "AI"]
crawler = douzone_crawl.DouzoneCrawler(max_results=2)
for query in search_queries:
# 검색 실행
results = crawler.crawl(query)
# 결과 저장 (검색어별로 다른 파일에 저장)
file_path = crawler.save_to_json(results, search_query=query)
print("모든 검색이 완료되었습니다.")
사용자 지정 경로 저장 예시
import douzone_crawl
# 크롤러 생성
crawler = douzone_crawl.DouzoneCrawler(max_results=2)
# 검색 실행
results = crawler.crawl("더존비즈온")
# 결과 저장 (사용자 지정 디렉토리에)
crawler.save_to_json(results, directory="./data/search_results")
# 또는 파일명과 디렉토리를 모두 지정할 수도 있습니다.
crawler.save_to_json(results, filename="douzone_search.json", directory="C:/Users/username/Documents")
기여하기
- 버그 신고나 기능 제안은 이슈 트래커를 이용해 주세요. 풀 리퀘스트도 환영합니다!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
douzone_crawl-0.1.7.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file douzone_crawl-0.1.7.tar.gz.
File metadata
- Download URL: douzone_crawl-0.1.7.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7b93b77c8466f7c72de9d5c8d06ef93ad854f213367c4edeba94a69bd8c44a5
|
|
| MD5 |
f54578575ea5ed3818605a4b6dd5de24
|
|
| BLAKE2b-256 |
cfc67bf0788f320d6e7d986d740295da099fc440034a32be85f9e93c2b3a3e1a
|
File details
Details for the file douzone_crawl-0.1.7-py3-none-any.whl.
File metadata
- Download URL: douzone_crawl-0.1.7-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e5a5273fae0fd6bbe41bfc813939814b2b4e4df951178e56715b5a5d400db5c
|
|
| MD5 |
4a55da2df89764c1a92678ab30763e22
|
|
| BLAKE2b-256 |
d4ad0e4e858ebebf1479301448753fd504bf23b2c74bbeecfc9162fa0f08cdae
|