엔트리 팔로워 분석 코드

2024. 8. 2. 19:53·엔트리

코드 설명

팔로워 분석하는 코드 (잘되는지도 모름)

코드 사용법

마페가서 콘솔에

 

ID =(location.href.match(/https:\/\/playentry.org\/profile\/([0-9a-f]+)/)||(()=>{throw alert("유저의 마이페이지에서 실행해주세요");})())[1]; //본인아이디 입력하세요

const csrf = await fetch("https://playentry.org");

const body = await csrf.text();

const cookie = csrf.headers.get('set-cookie');

const index = body.indexOf("csrf-token") + 21;

const csrfToken = body.slice(index, index + 36);

total=0;nickname='';list=[];await fetch("/graphql", {headers: {"content-type": "application/json","CSRF-Token": `${csrfToken}`,"cookie": `${cookie}`},body: `{"query":"query ($id: String) {userstatus(id: $id) {nickname status{follower}}}","variables":{"id":"${ID}"}}`,method: "POST"}).then(res => (res.json())).then(data =>{total=data.data.userstatus.status.follower;nickcname=data.data.userstatus.nickname;});await fetch("/graphql", {headers: {"content-type": "application/json","CSRF-Token": `${csrfToken}`,"cookie": `${cookie}`},body: `{"query":"query SELECT_FOLLOWERS($user: String, $pageParam: PageParam) {followers(user: $user, pageParam: $pageParam) {list{user{status {following}}}}}","variables":{"user":"${ID}","pageParam":{"display":${total}}}}`,method: "POST"}).then(res => (res.json())).then(data =>{list=JSON.stringify(data.data.followers).slice(0, -5).replaceAll('{\"user\":null},', '').replace('{\"list\":[{\"user\":{\"status\":{\"following\":', '').split('}}},{"user":{"status":{"following":');});list.push('1','50','300');list.sort(function(a, b) {return a - b;});console.log(`${nickcname}님을 팔로워하는 사람들은\n팔테봇 ${list.slice(0, list.lastIndexOf('1')).length}개,\n특별히 당신을 팔로우 해주는 사람 ${Number(list.slice(0, list.lastIndexOf('50')).length)-Number(list.slice(0, list.lastIndexOf('1')).length)-1}명,\n평범한사람 ${Number(list.slice(0, list.lastIndexOf('300')).length)-Number(list.slice(0, list.lastIndexOf('50')).length)-1}명,\n팔로우만 하는 사람들 ${total-Number(list.slice(0, list.lastIndexOf('300')).length)+2}명이에요.`)

 

코드 문의는 댓글로 해주세요.

 

더보기

이 코드를 사용해 일어나는 피해와 책임은 모두 사용자에게 있습니다.

 

'엔트리' 카테고리의 다른 글

엔트리 움직이는 썸네일 원터치 코드  (1) 2024.08.03
엔트리 작품 악플 댓글 아이디 자동 차단 코드  (0) 2024.08.03
엔트리 이야기 홍보 코드  (0) 2024.08.03
엔트리 유저 찾기 코드  (0) 2024.08.02
엔트리 csrf-token이랑 xtoken 구하는 코드  (0) 2024.08.02
'엔트리' 카테고리의 다른 글
  • 엔트리 작품 악플 댓글 아이디 자동 차단 코드
  • 엔트리 이야기 홍보 코드
  • 엔트리 유저 찾기 코드
  • 엔트리 csrf-token이랑 xtoken 구하는 코드
by coding1129
by coding1129
coding1129의 블로그
  • by coding1129
    coding1129의 블로그
    by coding1129
  • 전체
    오늘
    어제
    • 분류 전체보기 (17) N
      • 엔트리 (8)
      • 파이썬 (2)
      • zep (1)
      • 보안 (1)
      • 개발일지 (1) N
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 포트폴리오 사이트
    • 컴시간 알리미
    • 반편성 조회
  • 공지사항

    • 환영합니다.
  • 인기 글

  • 태그

    파이썬
    짜증남
    컴시간 알리미
    원터치
    유튜브
    검강화게임
    개발일지
    csrf-token
    성가심
    거슬림
    pyexe
    Infostealer
    EXE
    mshta
    엔트리
    영상
    컴시간알리미리메이크
    친구컴터
    다운로드
    음원
    xtoken
    링크만
    업데이트로그
    코드
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
by coding1129
엔트리 팔로워 분석 코드
상단으로

티스토리툴바