SiLaure's Data

[selenium] 01. 사이트에 로그인하여 데이터 크롤링하기 본문

Records of/Learning

[selenium] 01. 사이트에 로그인하여 데이터 크롤링하기

data_soin 2021. 8. 1. 17:37

 

- 다음 뉴스 댓글 개수 크롤링

 

In [42]:

더보기

[{'id': 393703026,
  'userId': 21828062,
  'postId': 133493400,
  'forumId': -99,
  'parentId': 393676277,
  'type': 'COMMENT',
  'status': 'S',
  'flags': 256,
  'rating': 0,
  'content': '전부 다 같이 자율주행한다면 성공하지 않을까요?\n100년뒤면 어찌될지 몰라요ㅋ',
  'createdAt': '2019-07-28T19:29:57+0900',
  'updatedAt': '2019-07-28T19:29:57+0900',
  'childCount': 0,
  'likeCount': 0,
  'dislikeCount': 0,
  'recommendCount': 0,
  'screenedByKeeper': False,
  'user': {'id': 21828062,
   'status': 'S',
   'type': 'USER',
   'flags': 0,
   'icon': 'https://k.kakaocdn.net/dn/cOdsNe/btq73jy63nu/Is8EOLpWJYlWJPgLUkE6JK/img_110x110.jpg',
   'username': 'KAKAO:711489446',
   'roles': 'ROLE_USER,ROLE_KAKAO,ROLE_IDENTIFIED',
   'providerId': 'KAKAO',
   'providerUserId': '105848184',
   'displayName': '.ㄱ견우왕자님',
   'description': '',
   'commentCount': 607},
  'parent': {'id': 393676277,
   'userId': -557848722,
   'postId': 133493400,
   'forumId': -99,
   'parentId': 0,
   'type': 'COMMENT',
   'status': 'D',
   'flags': 256,
   'rating': 0,
   'content': '',
   'createdAt': '2019-07-28T18:04:45+0900',
   'updatedAt': '2019-07-29T19:39:05+0900',
   'childCount': 2,
   'likeCount': 5,
   'dislikeCount': 7,
   'recommendCount': -2,
   'screenedByKeeper': False,
   'post': {'id': 133493400,
    'forumId': -99,
    'userId': 0,
    'postKey': '20190728165812603',
    'type': 'AUTO',
    'status': 'S',
    'flags': 0,
    'createdAt': '2019-07-28T16:59:33+0900',
    'updatedAt': '2021-08-01T17:18:59+0900',
    'title': '일론머스크 "테슬라에서 넷플릭스·유튜브 즐길 날 온다"',
    'url': 'https://news.v.daum.net/v/NHT9NtZWBe',
    'icon': 'https://img1.daumcdn.net/thumb/S1200x630/?fname=https://t1.daumcdn.net/news/201907/28/akn/20190728165813230vjsq.jpg',
    'commentCount': 42,
    'childCount': 9,
    'officialCount': 0},
   'user': {'id': -557848722,
    'status': 'S',
    'type': 'USER',
    'flags': 0,
    'icon': 'https://t1.daumcdn.net/profile/vJnnkYDzPbI0',
    'url': '',
    'username': 'DAUM:BKFW2',
    'roles': 'ROLE_USER,ROLE_DAUM,ROLE_IDENTIFIED',
    'providerId': 'DAUM',
    'providerUserId': 'BKFW2',
    'displayName': '한인생',
    'description': '',
    'commentCount': 65}}},
 {'id': 393690060,
  'userId': -118726600,
  'postId': 133493400,
  'forumId': -99,
  'parentId': 0,
  'type': 'COMMENT',
  'status': 'S',
  'flags': 256,
  'rating': 0,
  'content': '시대는 이재 바야흐로  영적진화  와  과학 진화가 공존 하는 새상이   곳 도래 하갯군',
  'createdAt': '2019-07-28T18:48:57+0900',
  'updatedAt': '2019-07-28T18:48:57+0900',
  'childCount': 0,
  'likeCount': 0,
  'dislikeCount': 0,
  'recommendCount': 0,
  'screenedByKeeper': False,
  'user': {'id': -118726600,
   'status': 'S',
   'type': 'USER',
   'flags': 0,
   'icon': 'https://t1.daumcdn.net/profile/wIW3Q.DCC_g0',
   'url': '',
   'username': 'DAUM:82ada',
   'roles': 'ROLE_USER,ROLE_DAUM,ROLE_IDENTIFIED',
   'providerId': 'DAUM',
   'providerUserId': '82ada',
   'displayName': '생명의빚으로',
   'description': '',
   'commentCount': 7809}},
 {'id': 394002136,
  'userId': 3015947,
  'postId': 133493400,
  'forumId': -99,
  'parentId': 0,
  'type': 'COMMENT',
  'status': 'S',
  'flags': 0,
  'rating': 0,
  'content': '실제 아이언맨이라고 불리는 얼론 머스크 잘 알고 있습니다. 항상 발전하는 모습 보고있고 언젠가 우리도 그의 기술을 사용하며 편의를 즐기는 날이 올것 갔습니다. 우주에서도 많은 계획이 있다고 들었습니다. 화이팅',
  'createdAt': '2019-07-29T16:06:10+0900',
  'updatedAt': '2019-07-29T16:06:10+0900',
  'childCount': 0,
  'likeCount': 3,
  'dislikeCount': 0,
  'recommendCount': 3,
  'screenedByKeeper': False,
  'user': {'id': 3015947,
   'status': 'S',
   'type': 'USER',
   'flags': 0,
   'icon': 'https://t1.daumcdn.net/profile/klq2XglmGLU0',
   'url': '',
   'username': 'DAUM:9wdBs',
   'roles': 'ROLE_USER,ROLE_DAUM,ROLE_IDENTIFIED',
   'providerId': 'DAUM',
   'providerUserId': '9wdBs',
   'displayName': '진성표',
   'description': '',
   'commentCount': 62}}]

 

 

Comments