Jump to content
UBot Underground

BigEfromDaBX

Members
  • Content Count

    383
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by BigEfromDaBX

  1. Im trying to scrape an element in ExBrowser using text() function. The text() function works in inspector but not exbrowser for some reason. Am I doing something wrong? See snapshot.

     
     

    I want to return the street line by itself and the City State and Zip line by itself.

     

    post-9583-0-51876500-1568326636_thumb.jpg

  2. thanks for your reply

     

     

    with your codes

    i get an error says 401 unauthorized

     

     

    and after days google

    i find with http basic mode , the authentication will pass through

     

     

    plugin command("HTTP post.dll", "http basic mode", "Yes")

    plugin command("HTTP post.dll", "http set headers", "Authorization", "{#account id}:{#token}")

    set(#post,$plugin function("HTTP post.dll", "$http post", "https://api.twilio.com/2010-04-01/Accounts/{#account id}/Messages.json", "To=+13018859006&From=+12022171008&Body=Hello World", "", "", "", ""),"Global")

     

    with the codes , i get an error says 400 bad request

     

    following are the debug content, please help me

     

     

    #post: HTTP/1.1 400 Bad Request

    Date: Tue, 10 Sep 2019 21:47:36 GMT

    Content-Type: text/html

    Content-Length: 264

    Connection: close

    X-Shenanigans: none

    Access-Control-Allow-Origin: *

    Access-Control-Allow-Headers: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since

    Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS

    Access-Control-Expose-Headers: ETag

    Access-Control-Allow-Credentials: true

    X-Powered-By: AT-5000

    Strict-Transport-Security: max-age=31536000

     

    <html>

    <head><title>400 The plain HTTP request was sent to HTTPS port</title></head>

    <body bgcolor="white">

    <center><h1>400 Bad Request</h1></center>

    <center>The plain HTTP request was sent to HTTPS port</center>

    <hr><center>nginx</center>

    </body>

    </html>

     

     

     

     

     

    I forgot to mention to install twilio via PIP

     

    Once you get all of that installed this will work for you.  Fill in the XXXXXXXX's

    set(#account_sid,"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxx","Global")
    set(#auth_token,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","Global")
    set(#body,"Hello World Via SMS","Global")
    set(#from,"+xxxxxxxxxxx","Global")
    set(#to,"+xxxxxxxxxxx","Global")
    set(#python_Test,$plugin function("ExecutePython.dll", "Execute From Code", "# Download the helper library from https://www.twilio.com/docs/python/install
    from twilio.rest import Client
    
    
    # Your Account Sid and Auth Token from twilio.com/console
    # DANGER! This is insecure. See http://twil.io/secure
    account_sid = \'{#account_sid}\'
    auth_token = \'{#auth_token}\'
    client = Client(account_sid, auth_token)
    
    message = client.messages \\
                    .create(
                         body=\"{#body}\",
                         from_=\'{#from}\',
                         to=\'{#to}\'
                     )
    
    print(message.sid)
    ", "c:\\Python37\\Python.exe"),"Global")
    
    
  3. thanks for your reply

     

     

    with your codes

    i get an error says 401 unauthorized

     

     

    and after days google

    i find with http basic mode , the authentication will pass through

     

     

    plugin command("HTTP post.dll", "http basic mode", "Yes")

    plugin command("HTTP post.dll", "http set headers", "Authorization", "{#account id}:{#token}")

    set(#post,$plugin function("HTTP post.dll", "$http post", "https://api.twilio.com/2010-04-01/Accounts/{#account id}/Messages.json", "To=+13018859006&From=+12022171008&Body=Hello World", "", "", "", ""),"Global")

     

    with the codes , i get an error says 400 bad request

     

    following are the debug content, please help me

     

     

    #post: HTTP/1.1 400 Bad Request

    Date: Tue, 10 Sep 2019 21:47:36 GMT

    Content-Type: text/html

    Content-Length: 264

    Connection: close

    X-Shenanigans: none

    Access-Control-Allow-Origin: *

    Access-Control-Allow-Headers: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since

    Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS

    Access-Control-Expose-Headers: ETag

    Access-Control-Allow-Credentials: true

    X-Powered-By: AT-5000

    Strict-Transport-Security: max-age=31536000

     

    <html>

    <head><title>400 The plain HTTP request was sent to HTTPS port</title></head>

    <body bgcolor="white">

    <center><h1>400 Bad Request</h1></center>

    <center>The plain HTTP request was sent to HTTPS port</center>

    <hr><center>nginx</center>

    </body>

    </html>

     

     

     

    Dude,

     

    The only way i got this working was using python.

     

    1.  Download python https://www.python.org/downloads/ and install it to your computer

    2.  Install Python Plugin (ExecutePython.dll) to ubot.

    3. Use the python examples from twilio.

     

    This worked perfect for me and at the same time I can start learning python.

  4. Has anyone ever used ubot to create a Facebook audiences?  I’m just learning how to do Facebook ads and see you can create a custom audiences based on emails and phone numbers. I think that’s pretty awesome especially when you’re not able to scrape an email but have phone numbers. 

     

    Can anyone recommend any sites besides yellow pages that I can scrape?

     

  5.  

    Wait, STOP!

    Don't just tell someone to go ahead and drive a Nascar car when the fastest thing they drove so far was a bicycle ;) and lets add some value for others which will see this topic, cause databases are important step and will have wrong assumptions.

     

    #factSQL B)

     

     

    #1. If you are totally new to storing/reading/manipulating any kind of data with use of any databases of any types, choosing SQLite is the BEST OPTION and no other solution will be better especially combined with uBot and whatever-kind-of-program you make. The leap will be a big one for any one going from lists/tables to databases and with SQLite the only thing you need to get it running is the same computer you are creating your bots on.

     

     

     

    #2. SQLite itself is really an awesome and a very powerful solution for data storage which you can and should master by yourself quickly and easily. It's really not wise to use other database solutions and waste a lot of time on things that you won't be able to utilize even in 20% for months to come (yes, MySQL is just an overkill really). Instead of spending 100's of hours to be a begginner in other db solutions, you can get a lot more out of using SQLite + it's so easy to use it that you will be looking for more ways and data to put in there (0 maintnance compare to MySQL).

    (this one is also answering OP)

     

     

     

    #3. CHECK YOUR FACTS. ALWAYS. Base your decisions on data and more data, not assumptions!

    OP here has assumed that he needs to go with MySQL databases, and was confirmed in that bs based on assumptions that he needs THAT solution which again is total bu....t.

     

     

    Here are some facts, straing from official SQLite website - and to make it even easier for anyone reading this, below are FACTS from SOURCE:

     

     

     

    #4. RE-READ the sentece above. They said it, I will say the same and many others will agree with that statement in full. I've personally made that mistake too many times, thinking that "the other" technology/solution will solve my needs/app needs when in reality it only post-poned or terminated the projects cause it was way too much to what I wanted to get done.

     

     

    #5. Simple SQLite database (which is just a .db file) CAN HANDLE 10 - 10 000X the amount of data compared to lists/tables OR whatever you think you will need in faraway future for your app. Quickly change whatever you want, in 1 row manually, or in 1 000 000 rows not-so-manually + you can make a COPY of DB file in case you break something to quickly restore the SQLite.

     

     

     

     

    There is so much awesome things that you can do with a SQLite database that it will take you a really really long time before you push it to it's limits and/or will need to use different database solution and I think there is no better way to get QUICKLY and EFFECTIVELY a more serious application/bot done with data stored in database then with SQLite. Learn it in and out, use it to the fullest and you will see that the only limitation was in your knowledge/skills rather then in the technology itself.

     

    Of course, MySQL got it's place in DB world for specific use cases, same as other DB types. But what you can do easily, in a time that it takes for a water to boil, with SQLite and your own brain and 2 hands and have fun expanding your creator skills (+ taking your uBots to NEW LEVEL with SQLite) would even faster go straight to SH&* and slow you down/bot development just cause you wanted to go with MySQL which will be outperformed 9 out of 10 times by SQLite performance, ease-of-use and your happiness using it.

     

    I understand that MySQL itself is like a common knowledge type of DB solution, I was in the same boat cause of web developments and online stuff where it's widely used (at least was ;) ) but using it always seemed like a daunting task and instead of wanting to push forward, having to deal with anything MySQL related made me freakin hate the DB stuff (I outsourced it all) and thinking that all DB stuff is that complicated etc. I heard about SQLite when I started with uBot and ohhh I was so amazed at how easy and fantastic working on a DB part of a bot/application was with it, that summing this post of mine with a summary.

     

    GO WITH SQLITE! If you think otherwise, go with SQLite anyways. 100%

     

    :ph34r: :wub: :ph34r:

     

    Thabks for that useful info [emoji4]

     

     

    Sent from my iPhone using Tapatalk Pro

  6. SQLite goes so fast that it's usually not a problem and if you use Heopas plugin the connection is only open while the command/function is running which is going to likely be milliseconds - I just ran a query that took 40 milliseconds..

    But can MYSQL handle multiple connections?

×
×
  • Create New...