towfiqi / serpbear

Search Engine Position Rank Tracking App
https://docs.serpbear.com/
MIT License
1.41k stars 141 forks source link

Feature Request: Local Targeting Search - Geo Location #139

Closed Biztactix-Ryan closed 8 months ago

Biztactix-Ryan commented 10 months ago

I'd love to see it able to provide GeoTargeting on both Mobile and Desktop.... That would make it useful for brick and mortar shops, not just online companies

Just down to a Town Level would be fine.... But some companies provide Lat/Long to test mobile search.

b6user commented 10 months ago

Agree, be a great feature.

jkdn0921s commented 9 months ago

I'd love as well to see this feature, using now Scraping Robot.

It'd be great to see city in addition to just the country:

serpbear local

Thank you!

wrtz008 commented 9 months ago

Agree too, it'd be awesome to see this feature, thank you so much!

s3w47m88 commented 8 months ago

I agree. I am going to have my programming staff look into developing a patch for this.

towfiqi commented 8 months ago

@s3w47m88 I will actually start working on it myself within the next few days.

s3w47m88 commented 8 months ago

Thank you @towfiqi - I will stand by then. But let me know if you'd like us to assist.

jkdn0921s commented 8 months ago

you guys rock, thanks for working on this, super appreciated!

towfiqi commented 8 months ago

This has been added in v1.0.0 which has just been released. You can now scrape city-level Google search results with the following scrapers:

searchapi.io serpapi.com serper.dev spaceserp.com valueserp.com

Ryan12439 commented 8 months ago

Hi! I appreciate this addition, and wanted to add in my two cents. Google has a UULE perimeter on the URL you can add, which allows you to specify a location (city, coordinates, etc). This could be used on the scrapers that do not natively have the functionality built in. I have included JS code on how I implemented this in my own app, I do not have any experience with TS or this codebase unfortunately, but it is relatively simple:

<script>
        function lengthBit(n) {
            var bits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
            return bits[n % 64];
        }

        function encode(loc) {
            var lenBit = lengthBit(loc.length);
            return 'w+CAIQICI' + lenBit + btoa(loc);
        }

        function createSearchURL(query, loc) {
            var encodedLoc = encode(loc);
            return 'https://www.google.com/search?q=' + encodeURIComponent(query) + '&uule=' + encodedLoc;
        }

        function generateURL() {
            var query = document.getElementById('query').value;
            var loc = document.getElementById('loc').value;
            var url = createSearchURL(query, loc);

            document.getElementById('result').innerHTML = 'Generated URL: <a href="' + url + '" target="_blank">' + url + '</a>';
            return false; // Prevent form submission
        }
    </script>
s3w47m88 commented 8 months ago

Where does this new setting appear? I pulled the latest via Docker and I don't see any options, I also don't see ValueSERP listed in the drop down.

towfiqi commented 8 months ago

Where does this new setting appear? I pulled the latest via Docker and I don't see any options, I also don't see ValueSERP listed in the drop down.

Did you update your serpbear instance? How are you running the app via docker or running locally without docker?

d363f86b commented 8 months ago

Docker. Yeah I am on Windows and opened PowerShell ans pulled the latest successfully.

-- [image: logo] http://www.theportlandcompany.com/ Spencer Hill Principal • The Portland Company mobile: (503) 610-8759 • office: (503) 567-9561 www.ThePortlandCompany.com http://www.theportlandcompany.com/ Advertising | Search | Social | Websites | Integrations | Apps | Photography | Film | Multimedia

On Fri, Feb 9, 2024 at 8:07 PM Towfiq I. @.***> wrote:

Where does this new setting appear? I pulled the latest via Docker and I don't see any options, I also don't see ValueSERP listed in the drop down.

Did you update your serpbear instance? How are you running the app via docker or running locally without docker?

— Reply to this email directly, view it on GitHub https://github.com/towfiqi/serpbear/issues/139#issuecomment-1936850141, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6ZQKEWULFVSTUZA32FIU3YS3XBDAVCNFSM6AAAAABANDSF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHA2TAMJUGE . You are receiving this because you commented.Message ID: @.***>

towfiqi commented 8 months ago

What command did you use to pull the latest release? Did you try restarting your container?

d363f86b commented 8 months ago

Yep. docker pull towfiqi/serpbear:latest

-- [image: logo] http://www.theportlandcompany.com/ Spencer Hill Principal • The Portland Company mobile: (503) 610-8759 • office: (503) 567-9561 www.ThePortlandCompany.com http://www.theportlandcompany.com/ Advertising | Search | Social | Websites | Integrations | Apps | Photography | Film | Multimedia

On Fri, Feb 9, 2024 at 8:41 PM Towfiq I. @.***> wrote:

What command did you use to pull the latest release? Did you try restarting your container?

— Reply to this email directly, view it on GitHub https://github.com/towfiqi/serpbear/issues/139#issuecomment-1936860799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6ZQKHX2GC2IVK2QBG5EX3YS325VAVCNFSM6AAAAABANDSF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHA3DANZZHE . You are receiving this because you commented.Message ID: @.***>

d363f86b commented 8 months ago

Any thoughts? Could you share a screenshot of what users should see to choose a location?

-- [image: logo] http://www.theportlandcompany.com/ Spencer Hill Principal • The Portland Company mobile: (503) 610-8759 • office: (503) 567-9561 www.ThePortlandCompany.com http://www.theportlandcompany.com/ Advertising | Search | Social | Websites | Integrations | Apps | Photography | Film | Multimedia

On Fri, Feb 9, 2024 at 9:43 PM Spencer Hill < @.***> wrote:

Yep. docker pull towfiqi/serpbear:latest

-- [image: logo] http://www.theportlandcompany.com/ Spencer Hill Principal • The Portland Company mobile: (503) 610-8759 • office: (503) 567-9561 www.ThePortlandCompany.com http://www.theportlandcompany.com/

Advertising | Search | Social | Websites | Integrations | Apps | Photography | Film | Multimedia

On Fri, Feb 9, 2024 at 8:41 PM Towfiq I. @.***> wrote:

What command did you use to pull the latest release? Did you try restarting your container?

— Reply to this email directly, view it on GitHub https://github.com/towfiqi/serpbear/issues/139#issuecomment-1936860799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6ZQKHX2GC2IVK2QBG5EX3YS325VAVCNFSM6AAAAABANDSF3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHA3DANZZHE . You are receiving this because you commented.Message ID: @.***>

towfiqi commented 8 months ago

You should see a new City field in the Add Keyword Modal. Screenshot 2024-02-13 231822

After pulling the latest docker image, did you run the container from the latest image?

s3w47m88 commented 8 months ago

Thank you. You can close this Ticke now.

For those who might experience this issue as well:

It was my mistake (I'm new to Docker). I had three Images, two were "Dangling" (not associated with a Container) So when I ran the Pull command in PowerShell, to update SERPBear, it was updating one of the Dangling ones instead of the one associated with the Container.

I used ChatGPT to help me debug this.

Sent with Proton Mail secure email.

On Tuesday, February 13th, 2024 at 9:20 AM, Towfiq I. @.***> wrote:

You should see a new City field in the Add Keyword Modal. Screenshot.2024-02-13.231822.png (view on web)

After pulling the latest docker image, did you run the container from the latest image?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>