seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
5.17k stars 960 forks source link

Add a "HelloGitHub" badge to the SeleniumBase ReadMe #3061

Closed mdmintz closed 3 weeks ago

mdmintz commented 1 month ago

Add a "HelloGitHub" badge to the SeleniumBase ReadMe

I've recently learned that "HelloGitHub is a platform for discovering and sharing beginner-friendly open source projects". SeleniumBase has "qualified" for a spot there: https://hellogithub.com/en/repository/c6be2d0f1969448697683d11a4ff915e.

After doing some extensive research, it seems legit: HelloGitHub has a large presence on GitHub (https://github.com/521xueweihan/HelloGitHub), and has been there for some time. It's basically a way for Chinese-speaking countries to discover regular GitHub projects via their social network. It's very popular in the Chinese-speaking world, but so far not as well known in the English-speaking world, although it has been gathering attention.

Adding a HelloGitHub badge basically means putting a "badge" in the SeleniumBase ReadMe, which is essentially a link to the HelloGitHub SeleniumBase page. The purpose of this is for improving marketing. They have already messaged me about the schematics of the badge. (They provided the base HTML.)

Featured|HelloGitHub

Given that SeleniumBase already has translations for 10 different languages, it makes sense to increase the marketing presence in more non-English-speaking countries. (The Syntax Formats page also covers these translations.) Probably the Chinese SeleniumBase API is of most interest to the HelloGitHub people, such as with this example test:

from seleniumbase.translate.chinese import 硒测试用例
硒测试用例.main(__name__, __file__)

class 我的测试类(硒测试用例):
    def test_例子1(self):
        self.开启("https://zh.wikipedia.org/wiki/")
        self.断言标题("维基百科,自由的百科全书")
        self.断言元素('a[title="Wikipedia:关于"]')
        self.如果可见请单击('button[aria-label="关闭"]')
        self.如果可见请单击('button[aria-label="關閉"]')
        self.断言元素('span:contains("创建账号")')
        self.断言元素('span:contains("登录")')
        self.输入文本('input[name="search"]', "舞龍")
        self.单击('button:contains("搜索")')
        self.断言文本("舞龍", "#firstHeading")
        self.断言元素('img[src*="Chinese_draak.jpg"]')
        self.回去()
        self.输入文本('input[name="search"]', "麻婆豆腐")
        self.单击('button:contains("搜索")')
        self.断言文本("麻婆豆腐", "#firstHeading")
        self.断言元素('figure:contains("一家中餐館的麻婆豆腐")')
        self.回去()
        self.输入文本('input[name="search"]', "精武英雄")
        self.单击('button:contains("搜索")')
        self.断言元素('img[src*="Fist_of_legend.jpg"]')
        self.断言文本("李连杰", 'li a[title="李连杰"]')

I'll add the badge to the ReadMe, and then see what happens. So far, just the presence of the HelloGitHub SeleniumBase page (and having SeleniumBase be a "Featured" repo there) has led to a lot of GitHub Stars in a very short time.

mdmintz commented 1 month ago

OK, the badge has been added to the ReadMe: https://github.com/seleniumbase/SeleniumBase/commit/6c1193e85751236e5d34289901a06a3e37ba84a0.

I may adjust the Size/Layout later. (Eg. The simple badge.) Featured|HelloGitHub

mdmintz commented 3 weeks ago

Looks like that brought in some new traffic to the SeleniumBase GitHub Page:

Screenshot 2024-09-08 at 9 28 14 AM

(There's HelloGitHub adding more views!)

Slightly off topic, I also see there was a huge jump in traffic coming from Google. Rumor has it that their Sales Team is aware that UC Mode can get past CF Turnstiles, but not Google reCAPTCHA, which is a great selling point for them to get more reCAPTCHA users. (A mutually beneficial arrangement.)