8000 GitHub - CjHayato/ncc: Naver Collecting Coin
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CjHayato/ncc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header

CodeQL Ruff

@stateofai 님께서 배포한 소스를 기반으로 수정하였습니다:)
aarch64 아키텍처 대응을 위해 Browser가 Static Badge에서 Static Badge로 교체되었습니다.
geckodriver 설치 하시고 코드를 실행해주세요.

Fork 후 원본(stateofai/naver-paper) 대비 변경점
  • chatGTPv3.5 님이 Browser 교체 코드를 수정 했습니다.
  • 네이버 아이디, 패스워드를 config.py 에 지정해서 동작 하도록 수정했습니다.
  • 캠페인(네이버 링크) 수집 -> 네이버 로그인 -> 캠페인 방문 순으로 변경하여 불필요한 네이버 로그인을 하지 않도록 했습니다.
  • 다모앙, 클리앙, 뽐뿌, 루리웹의 최신 게시물을 수집 해서 네이버 이벤트 URL 을 타켓팅 하도록 수정 했습니다.
  • 프로그램이 중복 실행을 방지 하도록 했습니다.
  • 다중 아이디를 지원하도록 수정했습니다.
  • 방문한 네이버 캠페인의 로그를 scrap-link.log 파일로 생성합니다.
  • 캠페인 수집(PC), 캠페인 참여(네이버) 의 브라우져 User-Agent를 분리 했습니다.
  • 네이버 CAPTCHA 발생을 최소화 하도록 수정 되었고, 이에 걸렸을 경우 48시간 동안 수집을 정지 합니다.
  • Selenium 버전 인식을 통해 Python 3.6 ~ 3.12 버전을 지원 하도록 수정 했습니다.

개발 환경

Static Badge Static Badge

테스트 완료 Python 버전

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge

설치 방법

Mozilla Firefox 설치

~]$ sudo dnf -y install firefox

GeckoDriver 설치

~]$ cd /usr/local/bin
~]$ sudo curl -LO https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux-aarch64.tar.gz
~]$ sudo tar xfzp geckodriver-v0.35.0-linux-aarch64.tar.gz
~]$ sudo chmod +x geckodriver
~]$ sudo chown root: geckodriver

소스 설치 방법

~]$ cd /opt
~]$ sudo git clone https://github.com/CjHayato/ncc.git
~]$ cd ncc
~]$ sudo pip install -r requirements.txt

사용 방법

config.py 수정

config.py 파일을 사용하시는 에디터로 열어 네이버 로그인 전용 아이디/비밀번호를 입력해주세요.
References 전용아이디 소개 및 설정 참조

프로그램 실행

~]$ python run_firefox.py

스케쥴링 설정 (Crontab)

sudo crontab -e 3시간 기준으로 작동하는 예시 입니다.

00 */3 * * *  /usr/local/pyenv/shims/python /opt/ncc/run_firefox.py

pyenv 를 사용 하지 않을 경우 아래와 같이 사용이 가능 합니다.

00 */3 * * *  python /opt/ncc/run_firefox.py

References

설명 URL
네이버 로그인 전용 아이디 소개 및 설정 https://help.naver.com/service/5640/contents/10219?lang=ko
네이버 애플리케이션 비밀번호 사용 방법 https://help.naver.com/service/5640/contents/8584?lang=ko
@stateofai 님 레포 https://github.com/stateofai/naver-paper
@20eung 뽐뿌 기반 코인 줍기 레포 https://github.com/20eung/naverpaper
ruff-action - python 코드 자동 리뷰 https://github.com/astral-sh/ruff-action

footer

About

Naver Collecting Coin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0