Giter Site home page Giter Site logo

ncc's Introduction

@stateofai 님께서 배포한 소스를 기반으로 수정하였습니다:)

aarch64 아키텍처 대응을 위해 브라우저가 Chrome에서 Firefox로 교체되었습니다.

geckodriver 설치 하시고 코드를 실행해주세요.

  1. chatGTPv3.5 님이 브라우져 교체 코드를 수정 했습니다.
  2. 네이버 아이디, 패스워드를 config.py 에 지정해서 동작 하도록 수정했습니다.
  3. 캠페인(네이버링크) 수집 -> 네이버 로그인 -> 캠페인 방문 순으로 변경하여 불필요한 네이버 로그인을 없앴습니다.
  4. @20eung 님의 코드를 참조 하여 클리앙 및 뽐뿌 모두 가져와 방문을 하도록 수정 했습니다.
  5. 프로그램이 중복 실행이 되지 않도록 구현했습니다.
  6. 다중 아이디를 지원하도록 수정했습니다.
  7. 성공 또는 실패 후 firefox 프로세스가 종료 되도록 수정했습니다.

개발 환경

OCI 인스턴스 - Olacle Linux 8.7(RHEL aarch64) - (pyenv)Python 3.10.12

호환성 : python 3.6+

Prerequisites

Installation.

Install Mozilla Firefox

$ sudo dnf -y install firefox

Install GeckoDriver

$ cd /usr/local/bin
$ wget https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux-aarch64.tar.gz
$ tar -xvf geckodriver-v0.34.0-linux-aarch64.tar.gz
$ chmod +x geckodriver

Usage

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

Edit config.py

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

실행

$ python run_firefox.py

Crontab 설정

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

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

References

ncc's People

Contributors

san0123 avatar stateofai avatar cjhayato avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.