Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Recommended programming language for showing combined scraped webpages in an app and a Windows application?

Recommended programming language for showing combined scraped webpages in an app and a Windows application?

Scheduled Pinned Locked Moved Design and Architecture
csharphtmlandroiddatabasesysadmin
15 Posts 2 Posters 0 Views 1 Watching
  • 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.
  • A arnold_w

    I have made a simple C# web scraping application, strictly for personal use, that searches car rental websites and then combines the results into a single html-webpage. Now I would like to take this one step further and have the following features: 1. Make this accessible in my Android mobile phone as well, in addition to on my Windows computer. 2. Add GUI components (buttons, checkboxes, comboboxes, etc for filtering, sorting, mark favorites, etc) that can call client-side functions/methods (btw, there is no server). What's the recommended way to accomplish this? I think it's kind of convenient to keep it as an html-webpage because I get some things for free (e.g. text search, print to a printer, copy-and-paste, etc) but it seems it's not possible to make the GUI-components in an html-webpage trigger client-side functions. I expect to add features as time goes by so it would be nice if those changes are as similar as possible in both the Android app and the Windows application. If I am allowed to choose, then I would prefer a programming language as similar to C# as possible because that's what I'm most experienced in.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #2

    Load all your "stuff" into a cloud drive; for all intents it's static content you're outputting. Then you can "browse" it with all your mobiles / PC's.

    It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

    A 1 Reply Last reply
    0
    • L Lost User

      Load all your "stuff" into a cloud drive; for all intents it's static content you're outputting. Then you can "browse" it with all your mobiles / PC's.

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      A Offline
      A Offline
      arnold_w
      wrote on last edited by
      #3

      Let's assume my web scraping applications find 100 rental cars and then it creates an html-document containing those 100 rental car offers. Now, let's assume I want to filter to only show the 10 cheapest cars, where would this be done? Would the cloud drive create a new, smaller html-file or could the html-file do this by itself somehow when I click a button?

      L 1 Reply Last reply
      0
      • A arnold_w

        Let's assume my web scraping applications find 100 rental cars and then it creates an html-document containing those 100 rental car offers. Now, let's assume I want to filter to only show the 10 cheapest cars, where would this be done? Would the cloud drive create a new, smaller html-file or could the html-file do this by itself somehow when I click a button?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        How can a "cloud drive" manipulate data if it is "serverless"? (i.e. dumb) Any filtering / sorting would have to happen on the client; so to get "10", you need to download the whole "100" first. "Serverless" is an illusion; like the future. (Better yet, store CSV's one can open and manipulate in Excel)

        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

        A 1 Reply Last reply
        0
        • L Lost User

          How can a "cloud drive" manipulate data if it is "serverless"? (i.e. dumb) Any filtering / sorting would have to happen on the client; so to get "10", you need to download the whole "100" first. "Serverless" is an illusion; like the future. (Better yet, store CSV's one can open and manipulate in Excel)

          It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

          A Offline
          A Offline
          arnold_w
          wrote on last edited by
          #5

          What different programming languages, triggered from a button within html, can perform the sorting/filtering on the client side?

          L 1 Reply Last reply
          0
          • A arnold_w

            What different programming languages, triggered from a button within html, can perform the sorting/filtering on the client side?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            And language that can consume the DOM: C, C#, C++, VB, VB.NET, Java, Excel (VBA), blah and blah.

            It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

            A 1 Reply Last reply
            0
            • L Lost User

              And language that can consume the DOM: C, C#, C++, VB, VB.NET, Java, Excel (VBA), blah and blah.

              It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

              A Offline
              A Offline
              arnold_w
              wrote on last edited by
              #7

              Could you please provide some example code or refer me to a beginner's guide (on the Internet) on how to implement the client-side Filter-10-Lowest-Prices-button event handler so that it ends up calling a method in C# that then modifies the html? What are the steps necessary in between?

              L 1 Reply Last reply
              0
              • A arnold_w

                Could you please provide some example code or refer me to a beginner's guide (on the Internet) on how to implement the client-side Filter-10-Lowest-Prices-button event handler so that it ends up calling a method in C# that then modifies the html? What are the steps necessary in between?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                In your case, since Excel runs on Android and Windows, all you need is an Excel spreadsheet with your "100 cars" to support "roaming data"; anything else would be over-kill. Add some VBA for a "smart document".

                It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                A 1 Reply Last reply
                0
                • L Lost User

                  In your case, since Excel runs on Android and Windows, all you need is an Excel spreadsheet with your "100 cars" to support "roaming data"; anything else would be over-kill. Add some VBA for a "smart document".

                  It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                  A Offline
                  A Offline
                  arnold_w
                  wrote on last edited by
                  #9

                  Ok, so you're suggesting I abandon the thought of using a webbrowser+html-file and use an Excel-sheet instead?

                  L 1 Reply Last reply
                  0
                  • A arnold_w

                    Ok, so you're suggesting I abandon the thought of using a webbrowser+html-file and use an Excel-sheet instead?

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    Based on your requirements, use Excel. Your initial "solution" was premature.

                    It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                    A 1 Reply Last reply
                    0
                    • L Lost User

                      Based on your requirements, use Excel. Your initial "solution" was premature.

                      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                      A Offline
                      A Offline
                      arnold_w
                      wrote on last edited by
                      #11

                      It seems Excel on Android doesn't support VBA...

                      L 1 Reply Last reply
                      0
                      • A arnold_w

                        It seems Excel on Android doesn't support VBA...

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #12

                        [Office Scripts: The future is here](https://theofficecontext.com/2020/04/03/office-scripts-the-future-is-here/)

                        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                        A 1 Reply Last reply
                        0
                        • L Lost User

                          [Office Scripts: The future is here](https://theofficecontext.com/2020/04/03/office-scripts-the-future-is-here/)

                          It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                          A Offline
                          A Offline
                          arnold_w
                          wrote on last edited by
                          #13

                          Please correct me if I'm wrong, but Office Scripts appears to be introduced in Office 365 and to get Office 365 I would need to sign up for a subscription (I can't buy it once and be done paying money to Microsoft for Office 365)?

                          L 1 Reply Last reply
                          0
                          • A arnold_w

                            Please correct me if I'm wrong, but Office Scripts appears to be introduced in Office 365 and to get Office 365 I would need to sign up for a subscription (I can't buy it once and be done paying money to Microsoft for Office 365)?

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #14

                            This goes beyond "design and architecture". I'll stop now.

                            It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                            A 1 Reply Last reply
                            0
                            • L Lost User

                              This goes beyond "design and architecture". I'll stop now.

                              It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                              A Offline
                              A Offline
                              arnold_w
                              wrote on last edited by
                              #15

                              Turns out I was wrong, in Excel 2013 and onwards it's possible to enable "Script Lap" as an add-in: Office Scripts vs Excel VBA (Everything you need to know) - YouTube[^]. Thanks for your suggestion, I will upgrade my Excel and give it a try.

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups