selenium만 좀 써봤는데, playwright 라는 것도 있나보다.
[태그:] automation
[SWARM] REST API/curl을 이용한 자동 리뷰
로그인
curl -b cookies.txt -c cookies.txt -X POST -d"user=dasomoli&password=PASSWORD&remember=on" http://SWARM_SITE/login > login.json
리뷰 정보
curl -b cookies.txt -c cookies.txt http://SWARM_SITE/reviews/607580 > review607580.html
파일에 코멘트
curl -b cookies.txt -c cookies.txt --data-urlencode 'topic=reviews/607580' --data-urlencode 'user=dasomoli' --data-urlencode 'context={"file":"FILENAME1.C","review":607580,"version":1}' --data-urlencode 'body=OK' --data-urlencode 'delayNotification=true' --data-urlencode '_csrf=42190951-ac6c-ea4f-0443-063ad2290f26' http://SWARM_SITE/comments/add
+1 vote up
curl -b cookies.txt -c cookies.txt --data-urlencode 'topic=reviews/607580' --data-urlencode 'user=dasomoli' --data-urlencode 'context={"file":"FILENAME1.C","review":607580,"version":1}' --data-urlencode 'body=OK' --data-urlencode 'delayNotification=true' --data-urlencode '_csrf=42190951-ac6c-ea4f-0443-063ad2290f26' http://SWARM_SITE/comments/add