How to query issues that match a text in their title (Restfull API) #148044
Replies: 2 comments
-
For the curious of the output for the script ## Search results
Lookup provided by [My Privacy DNS](https://www.mypdns.org/)
### Hosts-Sources
External Hosts-Sources can be found [here](https://github.com/external-sources/hosts-sources?tab=readme-ov-file#external-sources)
\`\`\`makefile
Ultimate.Hosts.Blacklist2.csv:t.co
pglYoyo.csv:t.co
url-shorteners.csv:t.co
\`\`\`
#### Sorted result
\`\`\`css
\`\`\`
### EasyList
\`\`\`makefile
easylist/easylist_specific_block_popup.txt:||t.co^$popup,domain=hltv.org
easylist/easylist_thirdparty.txt:||t.co^$subdocument,domain=kshow123.tv
\`\`\`
### Matrix blacklist project
\`\`\`makefile
phishing/wildcard:t.co
redirector/wildcard:t.co
\`\`\`
Found these RPZ records from My Privacy DNS
| Domain records | Type | content |
| :--- | ---: | ---: |
| \`*.t.co.phishing.mypdns.cloud\` | CNAME | . |
| \`t.co.phishing.mypdns.cloud\` | CNAME | . |
| \`t.co.redirector.mypdns.cloud\` | CNAME | . |
| \`t.co\` | CNAME | . |
## Known Issues
+ <https://kb.mypdns.org/issue/MTX-575/t.co>
+ We did not find any existing issues for the domain in Matrix
+ <https://github.com/12425/adblist/issues/4>
+ <https://github.com/gfwlist/gfwlist/issues/1783>
## DNS lookup
\`\`\`bash
t.co. 13999 IN NS a.r06.twtrdns.net.
t.co. 13999 IN NS a.u06.twtrdns.net.
t.co. 13999 IN NS b.r06.twtrdns.net.
t.co. 13999 IN NS b.u06.twtrdns.net.
t.co. 13999 IN NS c.r06.twtrdns.net.
t.co. 13999 IN NS c.u06.twtrdns.net.
t.co. 13999 IN NS d.r06.twtrdns.net.
t.co. 13999 IN NS d.u06.twtrdns.net.
t.co. 300 IN A 162.159.140.229
t.co. 3600 IN NS a.r06.twtrdns.net.
t.co. 3600 IN NS a.u06.twtrdns.net.
t.co. 3600 IN NS b.r06.twtrdns.net.
t.co. 3600 IN NS b.u06.twtrdns.net.
t.co. 3600 IN NS c.r06.twtrdns.net.
t.co. 3600 IN NS c.u06.twtrdns.net.
t.co. 3600 IN NS d.r06.twtrdns.net.
t.co. 3600 IN NS d.u06.twtrdns.net.
\`\`\`
## HTTP header
\`\`\`bash
HTTP/2 200
date: Sat, 28 Dec 2024 03:13:58 GMT
content-type: text/html; charset=utf-8
perf: 7402827104
cache-control: no-cache, no-store, max-age=0
x-transaction-id: 17621ff7c9e6a457
x-xss-protection: 0
strict-transport-security: max-age=0
x-response-time: 101
x-connection-hash: 0d8e1321f788f805569c811bcbb33ccecb55addebdb5013e7c3a96bb4b4301e4
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=VvsPKh0zH9Gxxb6a2gNMlZyEwQKRqroJJDH0PODA5EQ-1735355638-1.0.1.1-fq47NI.y65ze37LBw0xJ8g0q7b8hjonj2TKMhQjT5vdZR9qA4ykWNvtEVb1URqPMrOpIJbDlSPwnxRD_0qYE0A; path=/; expires=Sat, 28-Dec-24 03:43:58 GMT; domain=.t.co; HttpOnly; Secure; SameSite=None
server: cloudflare tsa_o
cf-ray: 8f8e60a65bdc3719-FRA
\`\`\`
|
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Marely identical to https://github.com/orgs/community/discussions/24428, but for the restfull API, not GraphQL
I need to search and obtain issues from my repo based on the title only. I'm using this in bash to search for evil domains in my own and others blacklist project.
The code I have build this far looks like this
The var: RECORD also comes in a regex variant like
regexpRECORD="${RECORD//./\\\.}"
to escape the and make dots literal dots.Now the second and the actual question, why do I not get issues I know exist?
For testing, try search for https://github.com/mypdns/matrix/issues?q=in%3Atitle+t.co or https://github.com/mypdns/matrix/issues?q=in%3Atitle+t.me and now do this with the API
For ease, here is the lines to test
Beta Was this translation helpful? Give feedback.
All reactions