diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 12bab38..1168bd9 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.x + - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: "3.x" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -34,3 +34,6 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/comments.txt b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/comments.txt new file mode 100644 index 0000000..9f5ec54 --- /dev/null +++ b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/comments.txt @@ -0,0 +1,181 @@ +{ + "ep-0-prologue": [ + "I'm excited to see where this will go i hope its not like every gacha plot ever", + "Why is the plot explanation literally just Doom At Your Service", + "guy this series is new sooo I have a chance to be top comment so will you guys be willing to help my dream", + "love this 🫶", + "Loving it already—!(ToT)💕", + "I'm so early but idk what to say😭😭", + "man in glowing suit vs man in regular suit rap battle", + "So this is how it feels to be early", + "Never have I ever been this early to a WEBTOON before😀 it literally has 0 likes 👁️👄👁️", + "Lets make a gacha story! mc: no I wanna be a webtoon. GACHA WEBTOON", + "Artist giving us the weird angles.", + "GRWM to start this web series", + "Never been this early before………. I’m the 701th like 🤓", + "This chapter Ends before starting BRO.", + "Loving this 💕💕", + "lowk kinda sounds like “My Demon”", + "bro, this is could be a great story or an earful story", + "Blud needs a reality check 💀" + ], + "ep-1-my-assigned-grim-reaper": [ + "here for the drama and and grim reaper to binge read", + "having to be with one person everyday is already a recepie for disaster, he should have had a relief grim reaper of sorts if they didn't want him end up being close to his assigned person", + "lol the faces 😂", + "Truck-kun strikes again. 😞😂", + "\"Young and rich, tall and handsome\" she wants charisma boss baby Ricky.", + "i love them, i am already invested in this 😭😭", + "ok I'm sorry, but the part where she describes her dream guy just made me think of \"Young and rich, Tall and handsome, it's baby Ricky\" and I can't remember the last part word for word so uhh no judgements please😁", + "Oh this is a really interesting concept. That each person is assigned their own grim reaper?", + "feels like sunny and grim reaper's alternate life story from goblin", + "I LOVE THE FACE ITS SO FUNNUY💔😭", + "hear me out… I think the best friend is her grim reaper", + "OMG this is giving such kdrama vibes i really hope this is a good one 🙏🏽", + "Lol what if this changes into a Isekai genre instead of supernatural", + "I almost choked at the art style switching to 4K and back", + "I’m SO here for the friends to lovers trope", + "You might enjoy this game called My Date with Death", + "great story and oof, bro is definitely going to get fired", + "wow this story really sounds like my Life. 💀", + "good luck finding out what world she got isekai'ed into 😔", + "I love this one! it gives K-Drama vibes, and things we can relate to!" + ], + "ep-2-rival": [ + "Kind of gives me this vibe.", + "Nooo!! We love him!! Ok maybe it will be ok, I bet he still watches out for her and now he can fall in love with her and not break the grim reaper rules 🙂🙂", + "The suit transition was too clean zamn", + "badum??? is she the one who fell first ???", + "DUDE HE WAS LIKE \"I'll protect her no matter what!\" then \"your getting replaced\"....that sent me into a heart attack", + "or maybe they think he's too bad as a grim reaper \nOH WHAT IF THERE'S ANOTHER GRIM REAPER TRYIMG TO SABOTAGE HIM FOR REVENGE. IM A GENIUS", + "Reapers have a petition out\nagainst Truck Kun.", + "I LOVE this story and the art style and I already have so many questions! Does every human get a grim reaper? Do grim reapers get more than one human? How did her grandmother know about them? Do grim reapers just protect or also kill? Who decides how humans die? Do grim reapers age like humans or can they alter their life to be whatever age they like?", + "NOOO DONT REPLACE HIM \nanyways he looks scrumptious in that suit", + "after all that reaping, they fire him. that’s really grim", + "I like this", + "That volleyball captain is literally Oliver Wood core 😭✋🏻", + "authornim do not change the grim reaper pleaze 🥹🙏", + "if they switch then they can date i guess lol" + ], + "ep-3-under-review": [ + "This dude is definitely planning something! I’m worried for Mr. Grim Reaper Guardian…!", + "2nd male lead confirmed", + "I wanna say he's her type but from one pannel... I feel like her type is wierd 🙂", + "uhm who is he? he gives me bad vibes", + "So is he gonna pretend to watch her but actually have evil intentions and try to hurt her while pretending to be nice to her?", + "why the new grim reaper is trying to kill her! He's supposed to save her no!!!", + "Considering he was called a Boomer I do wonder how old Haseong is....", + "And now we wait for 20 billion years I guess;-;", + "damn that's her type (and my type too) but im still team mr. original grim reaper!", + "I don't like this new guy...", + "so her type is men in tears", + "NOOOO I NEED MORE", + "I really like this manhwa, I hope it will become popular.", + "This is the tragedy of coming across a NEW webtoon....gotta wait for a thousand years now😭", + "yall what does her name mean", + "\"bathroom break!!\"\n\" I'll follow you! \"\n...\nbit too much, boi", + "me and gurl literally have the same type", + "damn, her typ realy be men thats on the verge of crying? lol", + "Thats has to be most the 4th wall\nhas ever got broken.", + "Everything else aside..The Cerberos is a pomeranian/chihuahua..??..that doesn't make sense..\nor maybe it kinda makes sense..😶" + ], + "ep-4-head-in-the-clouds": [ + "Well, this is gonna become Battle of the Reapers if Seulo is meant ta be her \"new designated Reaper\".🤣", + "I'm shipping both the grim reapers. (yk enemies to lovers is always better than other tropes)", + "Her handwriting as a 5 year old is neater than mine now. 😔🥹what am I doing wrong!?", + "Mhm, don’t know how I feel about the new guy, pls be cool.", + "why am i sensing a bad feeling toward this new grim reaper 😓 but it's too soon to judge so i just hope he's a good guy 🤞🏻", + "feels illegal to be this early", + "wait so is he a enemy or friend, I'm not sure yet😭😭", + "I want this new guy to have not that great intentions at first but over time as he gets to know fmc more he’ll have a change of heart haha. I still ship fmc with the main guy, though", + "I don’t have any coins so I have to wait hahaha", + "why’d he start giving background info", + "nah the name makes me crack up - seulo sounds like soul", + "Seolu just can't stop spinning stories.\nHis injury. His transfer." + ], + "ep-5-reunion": [ + "I love this series smmm but I don't like the new guy (sry I'm bad with names) I want her current grim reaper 😝AHHHHH", + "Tap to see spoiler View", + "it's so painful to see how underrated this is...", + "I loved how the friends talked in a historical way😹😹❤️", + "not the blondiee,he's trying to steal our okji fron haesong", + "I have no money 🥹", + "I hate the new guy so freaken much", + "I know it's going to be a jealousy arc", + "who’s gonna reap this the grimmest", + "i have a bad feeling about blond guy. Isn't his job just to evaluate why isn't he giving haeseong a chance to show that he is capable? 😭😭😭", + "i don't like Seluo on bit", + "you might've heard of 2 love interests but have you ever heard of 2 grim reapers fighting each other over a girl? 💀", + "ohk,but seulo teasing him is a new fav thing in my list now.😂", + "I really want haesong to okji" + ], + "ep-6-tension": [ + "i like how this webtoon kinda has a nostalgic 2000s feel", + "WHY IS NO ONE HERE? its rare being part first ones", + "Anyone else suspicious of Seulo? No? Just me? Okay, then.", + "That dramatic hehehe at the end tho", + "Team supervisor be kinda dumb.", + "🤨", + "last panel got me 😂😂", + "Seulo might be evil, but he has a point.", + "really dont know how haseong is gonna turn this around D: it would be neat to see him somehow get back to being her grim reaper though after being removed", + "What a self-centered blondie jerk!", + "Man. This Seulo guy is already getting on my nerves! I swear, if he does something to get her to avoid Haseong now…", + "now i wonder if seulo is trying to rile him up but he is doing a good job of it", + "Dude was left in the dust 💔", + "Ngl seulo pmo so much like LEAVE OKJI ALONE", + "new reaper uses **Flattery**🤺\n\nit is super effective 💪🏽", + "Well I feel he should up his game tho 😁", + "at this point its a fight to the death over who gets the spot and who goes home empty handed", + "I'm getting impatient..." + ], + "ep-7-totally-screwed": [ + "dude....are all the broke a** people reading this webtoon or something?? like seriously, the earliest comments came today!! 😂😂😂😂", + "Best friends already!", + "screwed how?! 😭", + "That last panel is how I be feelin' right before exams....\n\n\"You're totally screwed!!\"", + "I can already see their forever lasting friendship😂😂", + "I want him to stay her grim reaper.. wouldn’t it be cool if she realizes it’s him and they get to stay together. Can we ship them yet?", + "this is crazy😭😭😭", + "\"no one is commenting\" inflation at its finest", + "At this point the psychic should just hand her a helmet, bubble wrap, and a prayer.🥲🥹😅", + "Things are getting very interesting!", + "ahh, at least haseong got to save her for something again…that means something, right? I really hope seulo isn’t going to ruin everything", + "😭", + "I love how quick she is to accept her fate😂and Her face lmao😂😂", + "hahaha her silly face ! that's how I look at my boyfriend h24" + ], + "ep-8-come-forth": [ + "I love how quickly this moved, I thought it would take much longer for them to connect the dots. Can’t wait to see what happens next!", + "Imagine that happening to you, (grime reaper pov) and your half naked 💔🥹✌️", + "That was so unexpected and amusing. But how is Grim Reaper Bestie gonna fix this…", + "Illegal ending to the chapter 😅🤧\nI’m invested now…this will be interesting. Haseong trying to look cute is kinda endearing 😭😭", + "Mirror Mirror in the stall\nInto who's bed\nWill I fall.", + "Oh dear", + "And then what happened…?!", + "NO WAYYYY HAHAHA", + "hahahahaha....the last panel just made my day!!!!", + "Okay that’s funny! 😆", + "in Grim Reaper culture that is considered a PP move.", + "", + "Lmao 🤣", + "yayyyy Goblin reference🤩", + "genuinely what do you do in this situation", + "yaaaaaayyy" + ], + "ep-9-the-life-and-death-registry": [ + "NO WAYY, that’s so sudden omg 💔, my goats..", + "love the comedy and the pathos.....she wanted to know but a month OMG", + "Oh wow, very accurate reading apparently! Yikes 😬", + "Haseong: tries to look cute for five seconds\nDestiny: ‘Anyway, your best friend’s lifespan just went on sale.", + "That shaman looks kinda hot, no? 😉. \nBut that sentence 😳, no…", + "", + "the PINK pants look good on her dad lmaoo", + "OMG I LOVE THE PIKACHU SHIRT HAHA", + "Ik he is gonna change her fate.. I just can’t prove it..", + "how does this not even have 100 likes.", + "Can't wait.. Can't wait.. Ugh.. ~~~", + "omg! Im this early??", + "I'm so sad. Why is she going to die so soon 😢 😭😭😭😭" + ] +} \ No newline at end of file diff --git a/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/data.txt b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/data.txt new file mode 100644 index 0000000..404995b --- /dev/null +++ b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/data.txt @@ -0,0 +1,26 @@ +{ + "vader": [ + 0.2009166666666667, + 0.31924, + 0.046550000000000015, + -0.21146000000000004, + 0.13260833333333333, + -0.21714999999999998, + -0.08181111111111111, + 0.14537857142857144, + 0.09291250000000001, + 0.18093076923076923 + ], + "textblob": [ + 0.17058080808080808, + 0.15020833333333333, + -0.063640873015873, + -0.02170454545454544, + -0.017918771043771046, + -0.059945887445887434, + -0.06907968574635243, + 0.09485544217687074, + 0.058203124999999994, + 0.13032051282051282 + ] +} \ No newline at end of file diff --git a/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/graph.png b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/graph.png new file mode 100644 index 0000000..220d948 Binary files /dev/null and b/selenium/Comment_Analysis/the-grim-reaper-is-my-guardian/graph.png differ diff --git a/selenium/__pycache__/graph.cpython-312.pyc b/selenium/__pycache__/graph.cpython-312.pyc index 22dff97..b7e73d4 100644 Binary files a/selenium/__pycache__/graph.cpython-312.pyc and b/selenium/__pycache__/graph.cpython-312.pyc differ diff --git a/selenium/combined.py b/selenium/combined.py index f1a5eaf..ccd9b7a 100644 --- a/selenium/combined.py +++ b/selenium/combined.py @@ -3,7 +3,7 @@ import sentiment_analysis # Website must be the link to the first episode of the webtoon to scrape -website = "https://www.webtoons.com/en/romance/seasons-of-lovesome/episode-1/viewer?title_no=6881&episode_no=1" +website = "https://www.webtoons.com/en/romance/the-grim-reaper-is-my-guardian/ep-0-prologue/viewer?title_no=8861&episode_no=1" info = website.split("/") title = info[5]