Questions tagged [bots]

Bots, also known as web-robots, are software applications that run automated tasks over the Internet. Typically, they perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human alone. Notable examples are spiders, crawlers, scrapers, spam-bots and game-bots.

Bots are made to automate human surfing activity to get commercial advantage. Currently there are three main fields of application for them:

  • Searching: crawling the web, gathering hyperlink structure, parsing and/or storing content found
  • Advertisement: post advertisements on resources which technically allow it - blogs, forums, social networks
  • Games / Gambling / Trading: "gold farming", "e-bay snipers", "auto-bid", etc.

Even though the first category is almost a mainstream, all bots are negatively perceived by society in general. Site owners actively refuse to let unknown bots to use their sites, by all technical and legal means. CAPTCHA is the most famous artifact of this "war".

Bots can be written in any language that allows network interaction, but most often in PHP, Perl or Python. Modern bots are often based on web-testing frameworks, like Selenium or Watir, giving them ability to fully simulate human behavior and work with AJAX sites.

Notice: Bots should not be confused with "zombie-pc", individual units of botnet.

10368 questions
20
votes
7 answers

Block requests after multiple unsuccessful logins

I want to block requests from bots that attempt to brute force login to my website. I'm using Session to store login attempts, and I show a Captcha after three unsuccessful logins. However, the problem is that Session is removed once the user closes…
Arian
  • 12,793
  • 66
  • 176
  • 300
19
votes
1 answer

Using Google+ Hangouts API

If someone adds bot@mydomain.com to his Google Hangout contacts and sends it a Google+ Hangout Chat message, I want to set up an automatic reply to his chat from my server. Is there a way to do that?? I think Its possible using the Google+ Hangouts…
prateekkathal
  • 3,482
  • 1
  • 20
  • 40
18
votes
1 answer

how to create a gitlab bot to automate issues handling

We're working on a few project hosted on Gitlab and it would be really convenient for us to have a bot to automate some issues handling. E.g.: automatically close issues that have been tagged as 'waiting answer from client' more than 20 days ago I…
fudo
  • 2,254
  • 4
  • 22
  • 44
18
votes
7 answers

How to recognize bots with php?

I am building stats for my users and dont wish the visits from bots to be counted. Now I have a basic php with mysql increasing 1 each time the page is called. But bots are also added to the count. Does anyone can think of a way? Mainly is just the…
Hugo Gameiro
  • 615
  • 2
  • 7
  • 16
18
votes
4 answers

Discord Bot Can't Get Channel by Name

I have been making a discord bot and wanted to make it send a message to a specific "Welcome" channel. Unfortunately, I have been unable to do so. I tried this. const welcomeChannel = bot.channels.get("name",…
Leo
  • 297
  • 1
  • 2
  • 8
18
votes
2 answers

Can I use WGET to generate a sitemap of a website given its URL?

I need a script that can spider a website and return the list of all crawled pages in plain-text or similar format; which I will submit to search engines as sitemap. Can I use WGET to generate a sitemap of a website? Or is there a PHP script that…
Salman A
  • 262,204
  • 82
  • 430
  • 521
18
votes
4 answers

Weird error with Facebook Messenger Platform/bot Welcome Confugration

I'm getting a weird error while configuring welcome message for my Messenger bot. I've been using the same code (as shown below) and it has just been working fine until last night. I tried it with both cURL and Postman. Neither of them works. curl…
lei he
  • 259
  • 3
  • 8
18
votes
4 answers

Any Way Around Facebook Bots Button Template Limit?

It appears (undocumented) that for a button message type in the Facebook Bots chat system, there is a max of 3 buttons. This seems arbitrary and limiting. Does anyone know if there is a way to have more than 3 buttons? To be clear, I'm referring to…
nickbona
  • 1,374
  • 1
  • 11
  • 23
18
votes
4 answers

Facebook messenger API bot : "Typing bubble" " indicator bubble"

I've created a messenger bot, and some action that I perform can take some time. So in order to make the user wait I would like to display the "Indicator Bubble" (the one you see when the people you talk with are typing): Typing bubble It is not…
Henri Chabrand
  • 181
  • 1
  • 1
  • 4
17
votes
5 answers

A User Agent that says just "Mozilla/4.0" is a bot, right?

I'm getting several requests in web apps that are basically wrong in ways my code shouldn't be generating... Mainly it's requests to .ashx without any GET parameters specified. The user agent is "Mozilla/4.0" (nothing more than that) The IPs vary…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
17
votes
3 answers

Get Message By ID: Discord.js

I am doing a report system for a discord bot and I want the player to report a specific message by the id so that the moderators can decide if it is offensive or not. I am struggling to find a way to get the message's text from the given id. Is…
NintendoZaedus
  • 653
  • 3
  • 8
  • 22
17
votes
2 answers

How to send bold text using Telegram Python bot

I am writing a telegram bot in Python. I want to send messages with bold letters. I tried to inclose message inside both * and **, but it does not solve the problem. Is there a function for mark up or HTML formatting or a way to do it?
Ramon de Llano
  • 365
  • 1
  • 2
  • 11
17
votes
4 answers

Is there a list of known web crawlers?

I'm trying to get accurate download numbers for some files on a web server. I look at the user agents and some are clearly bots or web crawlers, but many for many I'm not sure, they may or may not be a web crawler and they are causing many downloads…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
17
votes
4 answers

Where do I start with a web bot?

I simply want to create an automatic script that can run (preferably) on a web-server, and simply 'clicks' on an object of a web page. I am new to Python or whatever language this would be used for so I thought I would go here to ask where to start!…
Jon Duvillier
  • 171
  • 1
  • 1
  • 3
16
votes
4 answers

How should I use parse_mode='HTML' in telegram python bot?

I'm trying to send a message in a channel with a bot, using Telegram API's send_photo() method. It takes a caption parameter (type String) but I can't format it through parse_mode='HTML' parameter... If I use something like this: send_photo(chat_id,…
Federico
  • 415
  • 1
  • 3
  • 15