Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Local Targeting Search - Geo Location #139

Closed
Biztactix-Ryan opened this issue Dec 8, 2023 · 17 comments
Closed

Feature Request: Local Targeting Search - Geo Location #139

Biztactix-Ryan opened this issue Dec 8, 2023 · 17 comments

Comments

@Biztactix-Ryan
Copy link

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
Copy link

b6user commented Dec 11, 2023

Agree, be a great feature.

@jkdn0921s
Copy link

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
Copy link

wrtz008 commented Jan 10, 2024

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

@s3w47m88
Copy link

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

@towfiqi
Copy link
Owner

towfiqi commented Feb 1, 2024

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

@s3w47m88
Copy link

s3w47m88 commented Feb 1, 2024

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

@jkdn0921s
Copy link

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

@towfiqi towfiqi closed this as completed in 3719f21 Feb 9, 2024
@towfiqi
Copy link
Owner

towfiqi commented Feb 9, 2024

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
Copy link

Ryan12439 commented Feb 9, 2024

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
Copy link

s3w47m88 commented Feb 9, 2024

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
Copy link
Owner

towfiqi commented Feb 10, 2024

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
Copy link

d363f86b commented Feb 10, 2024 via email

@towfiqi
Copy link
Owner

towfiqi commented Feb 10, 2024

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

@d363f86b
Copy link

d363f86b commented Feb 10, 2024 via email

@d363f86b
Copy link

d363f86b commented Feb 13, 2024 via email

@towfiqi
Copy link
Owner

towfiqi commented Feb 13, 2024

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
Copy link

s3w47m88 commented Feb 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants