add bitrix support
This commit is contained in:
1 parent
747f8f2312
commit
5690cf58a9
62 files changed
+4098
-1053
No files matched your search
@@ -11,6 +11,15 @@ import (
|
||||
|
||||
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36"
|
||||
|
||||
const bodySnippetLimit = 300
|
||||
|
||||
func BodySnippet(body []byte) string {
|
||||
if len(body) > bodySnippetLimit {
|
||||
return string(body[:bodySnippetLimit]) + "..."
|
||||
}
|
||||
return string(body)
|
||||
}
|
||||
|
||||
func LoadCookies(path string) string {
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user