• 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

Help about ignoring errors

Scheduled Pinned Locked Moved Support
12 Posts 2 Posters 1894 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.
  • N Offline
    N Offline
    nitin
    wrote on last edited by
    #1

    My situation:-
    I am scraping a lot of similar pages in a loop, each page with 50 elements.
    Some of these 50 elements are not expected to appear on each page.

    If I add an ignore error loop to each element, my code area becomes very hard to read.

    My question:-
    Is there a way to enable ignore-error globally so that I don't have to add so many ignore-error conditions.

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

    You already have the answer in the question, you said it probably won't appear, so use "Is element exist".

    💻 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
  • N Offline
    N Offline
    nitin
    wrote on last edited by
    #3

    Thanks for the response Melinda but that still means a new statement for each elements.

    Still would like to have a single statement/declaration that skips all elements when not found.

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

    @nitin What is the specific operation you want to do with each element?

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

    N 1 Reply Last reply
    0
  • N Offline
    N Offline
    nitin
    replied to BAS Viet Nam on last edited by
    #5

    @Melinda

    Let's say there are 50 elements to be scraped e1..e50.

    If e1 is not found on page, then skip to e2, instead of failing and exiting.

    BAS Viet NamB 1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    replied to nitin on last edited by
    #6

    @nitin I want to ask what do you do with each element, get text, get xml, screenshot or something else.....

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

    N 1 Reply Last reply
    0
  • N Offline
    N Offline
    nitin
    replied to BAS Viet Nam on last edited by
    #7

    @Melinda I need to get text and get url link for each of the elements .
    Each value (text/url) gets saved to a variable.

    e.g. the text of element1 gets saved as variable1.

    BAS Viet NamB 1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    replied to nitin on last edited by BAS Viet Nam
    #8

    @nitin Sorry I don't have a computer here, I'm texting on my phone so it's a bit slow. You do 2 jobs on one element, you can just use one action "Get element content (xml)", then separate the name and link. Or do it into 2 separate operations, "Get element Text" and "Get link URL".
    But for any operation, please notice the area I circled on the image, if you want to perform the operation always without waiting for the element to appear, uncheck "Wait for element". And here's what you need to do => uncheck "Fail thread if....." and the hourglass image, you can set it to "1" seconds.
    E17C5319-D609-43A1-8F14-CC1374050361.jpeg 3EC141F8-BAF1-400E-B592-C97F37710B16.jpeg 1C4DA1A5-4F4F-4B82-81D9-0EF9EEFE0209.jpeg

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

    N 1 Reply Last reply
    0
  • N Offline
    N Offline
    nitin
    replied to BAS Viet Nam on last edited by
    #9

    @Melinda This looks perfect thank you so so so so much!!!!

    How can I thank you! Are you on buymeacoffee.com ?

    BAS Viet NamB 1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    replied to nitin on last edited by
    #10

    @nitin ah no need to bother, happy to help.

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

    N 1 Reply Last reply
    0
  • N Offline
    N Offline
    nitin
    replied to BAS Viet Nam on last edited by
    #11

    @Melinda Can't thank you enough.

    I wanted to send you a thank you on your telegram too. It seems @devbas on telegram does not exist.

    BAS Viet NamB 1 Reply Last reply
    0
  • BAS Viet NamB Offline
    BAS Viet NamB Offline
    BAS Viet Nam GURU BAS
    replied to nitin on last edited by BAS Viet Nam
    #12

    @nitin
    You can check again.
    E1F95A3B-8C9E-4CA3-8600-A518EF44F50E.jpeg

    💻 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

  • M

    Please help 🙏 Where should this code be placed?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    197 Views
    No one has replied
  • B

    Field to create maybe limit Max script per day(Help needed urgent)

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    344 Views
    No one has replied
  • D

    Extracting User IDs of Post Likers on Instagram: How Can I Get Help?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    435 Views
    No one has replied
  • E

    I forgot my password please help.

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    422 Views
    No one has replied
  • E

    Mercari Image Upload Error

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    585 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.