• Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Bablosoft

Running each thread with one function.

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 986 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptt.bds
    wrote on last edited by
    #1

    I am building a news article scanning tool for over 100 online news websites to check if newly published articles contain specific keywords that I provide.

    I have written a separate function for each news website. How can I run these functions in multiple threads, for example, running 5 threads at a time corresponding to 5 news websites until all websites are processed, and then starting over from the beginning?

    1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    wrote on last edited by
    #2

    There are many ways, here is one.
    Set thread number is 5, run type is Repeat.
    Create a txt file with 100 lines, each line is a data to specify the name of the website you want to crawl.
    For each website, create a function to scan the corresponding data.
    Create a resource of the form LinesFromFile (Use each line any number of times).

    When reading data, for each line received, use the "IF" command to check.
    For example, with 1 line in the txt file I denoted by cnn, so when I receive this data, I will execute the corresponding "Call function" command "cnn".
    Same goes for the remaining 99 lines, with the other "Call function" commands.
    alt text
    So, when it's done 100 websites, with the initial resource data settings, it will run from the beginning.

    💻 Work with Reputation, Speed, and Quality
    🤙 Telegram : https://t.me/basvietnam
    💻 Website : https://basvietnam.com/
    🎦 Youtube : https://www.youtube.com/@basvietnam/videos

    1 Reply Last reply
    0
  • P Offline
    P Offline
    ptt.bds
    wrote on last edited by
    #3

    Thank bro nhiều, có hội nhóm BAS của ae Việt Nam giao lưu không bác ?

    BAS Viet NamB 1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    replied to ptt.bds on last edited by
    #4

    @ptt-bds à chào bác, hiện mình không có tham gia nhóm nào về BAS hết bạn, m tự nghiên cứu + tham gia diễn đàn + kết hợp với 1 số pro thôi bác à.

    💻 Work with Reputation, Speed, and Quality
    🤙 Telegram : https://t.me/basvietnam
    💻 Website : https://basvietnam.com/
    🎦 Youtube : https://www.youtube.com/@basvietnam/videos

    1 Reply Last reply
    1

  • S

    Error with threads

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    508 Views
    No one has replied
  • T

    Processing Between Threads by Time | Chatbot

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    532 Views
    No one has replied
  • H

    Recaptcha v2 works in record mode but not in thread mode

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    611 Views
    No one has replied
  • 7

    proxy works in record bot not in run mode

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    647 Views
    No one has replied
  • R

    thread failing with weird error

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    1055 Views
    No one has replied
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
  • Login

  • Don't have an account? Register

  • Login or register to search.